Wednesday 29 April 2020

How to resize a batch of images in linux?

assign folder to current location:
FOLDER = $(pwd) 

convert all images using imagemagick and save into output folder:-
find ${FOLDER} -iname ‘*.png’ -exec convert \{} -verbose -resize 400x225\> output/\{} \;

No comments:

Post a Comment