We recently decided to redesign our old app which used 150x150 thumbnails. New thumbs are of size 250x250.
Now what i have to do is an one-off process to replace all the old 150 thumbs that were created before the redesign, with 250 ones.
The function used for creating new thumbnails was php's
imagecopyresampled. I would like to find something that would give me similar/same results.
imagecopyresampled() copies a rectangular portion of one image to another image, smoothly interpolating pixel values so that, in particular, reducing the size of an image still retains a great deal of clarity.
Also, the job itself is a little complicated since there are some folders/files that has to be excluded when iterating trough the files.
level 1: company folder level 2: company property folder, company products folder level 3: there are images that have to be resized inside company property folder.
company 1 company 2 company 3 ----company 3 property --------image1.jpg (original size) --------image1_thumb.jpg (old 150 thumb) --------image2.jpg --------image2_thumb.jpg ----company 3 products (folder also includes images but they should not be resized)
Basically the only files we work with are original-sized images (ones without _thumb) inside property folders. Old 150px thumb images are to be deleted and/or replaced by new, 250px ones.