Error message

  • Warning: Illegal string offset 'field' in DatabaseCondition->__clone() (line 1895 of /home/paradi35/public_html/includes/database/query.inc).
  • Warning: Illegal string offset 'field' in DatabaseCondition->__clone() (line 1895 of /home/paradi35/public_html/includes/database/query.inc).

PIL

batch image resizing

Resizing a lot of images quickly in paint or something similar takes a lot of time. This is a python script that resizes the .jpg images in a specified folder. Several differently dimensioned images can be generated for each original image and can be differentiated by the postfix associated with each size.

The script is called as:
python batchresize.py foldertoconvert
where batchresize.py is the script displayed below.

The resized images are dumped into the directory the script is already in.

Subscribe to RSS - PIL