Posted in Command Line, Linux Batch Resize Image Binny V A October 31, 2008 5 Comments on Batch Resize Image Resize all JPG Files to 800×600 convert -sample 800x600 *.jpg output_file_name Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.
5 thoughts on “Batch Resize Image”
Whst should be the value of “name” here. How will the original files be named?
Name is the output file name. The original files can be named however you want them.
Thats a good info but I like this better (for obvious reasons that it does not change the filename):
for i in * do; convert -sample 800×600 i ak_i; done
BTW, do you have any idea, wheather resize is better or sample is better option in covert for resizing the image. I did not see any difference in both approaches other then technical difference.
Yeah – I like that too – as a matter of fact, I have a shell script that does this…
About the Resample/Resize issue – I am not sure either.