I am using ImageMagick convert command for making thumbnails & save the converted images in another directory, one by one, in PHP.
But, cant figure out how to keep the the image name in the converted image.
> convert 1.JPG -resize 120X120 thumb/*.JPG
need to keep the output file names same as the input. Please help.
A simple solution would be copy, followed by mogrify – another imagemagick tool – this will keep the same names, it takes all the same args as convert.
Alternatively you could do a bit of shell scripting, using find -exec or xargs