I am using the GD library with PHP.
Basically, I’ve made a design change and need to resize a whole bunch of images that are a certain width.
ie anything that is 876px wide needs to be 828px.
Is there a way to loop through all JPG files in a directory, check their width dimension, and if they equal X then grab their existing file name, rescale down to the same name?
Just need to use
imagecopyresampled()in a loop.