Page 1 of 1

mogrify quality syntax help

Posted: 2016-12-10T13:29:13-07:00
by groupdoup
I have struggled now for a very looong time trying to get this to work, its probably super easy for most of you guys here, im a beginner when it comes to command line scripting in general..
I am running on windows by the way.

All I try to do is to read all pictures in a folder and reduce the file size of them and save them to another folder.

This works (almost).

Code: Select all

mogrify -path C:/Users/MrX/Desktop/Result C:/Users/MrX/Desktop/test/*jpg -quality 50% 
It saves pics in the result file. But regardless of quality setting the new file is 3.92 MB (down from 4.44)

Bonus: My initial idea was also to save them with a new file name called reduced_imagename.jpg But that is level 2 after getting this to work

What am I doing wrong?
Please help

Re: mogrify quality syntax help

Posted: 2016-12-10T13:35:13-07:00
by snibgo
"mogrify" needs the input filename at the end of the command.

Re: mogrify quality syntax help

Posted: 2016-12-10T13:38:31-07:00
by groupdoup
Thanks alot! It finally worked =)