mogrify quality syntax help

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
groupdoup
Posts: 2
Joined: 2016-12-10T13:19:21-07:00
Authentication code: 1151

mogrify quality syntax help

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: mogrify quality syntax help

Post by snibgo »

"mogrify" needs the input filename at the end of the command.
snibgo's IM pages: im.snibgo.com
groupdoup
Posts: 2
Joined: 2016-12-10T13:19:21-07:00
Authentication code: 1151

Re: mogrify quality syntax help

Post by groupdoup »

Thanks alot! It finally worked =)
Post Reply