Skip to content

reduce size of images in folder

first install  http://www.imagemagick.org/script/binary-releases.php#macosx

then

for files in *; do convert -strip -quality 80 “$files” “$files”; done

in windows do a bat file an put this into it:

@ECHO OFF
ECHO.
ECHO This is a batch file
ECHO.
FOR %%c in (C:\Users\nilsen\Pictures\*.*) DO convert -strip -quality 80 %%c %%c

Categories: linux.

Comment Feed

2 Responses

  1. what about something like:

    mogrify -quality 80% -monitor *.jpg

    ? ;-)

  2. find . -type f -name ‘*.JPG’ -print0 | xargs -0 mogrify -resize 640 -quality 70% -strip



Some HTML is OK

or, reply to this post via trackback.