U
U
Unicom2013-09-25 12:46:26
Debian
Unicom, 2013-09-25 12:46:26

Problem with mogrify options of imagemagick package?

Task:
Recursively catch all pictures and for those whose resolution is more than 1280 pixels on the larger side (72dpi), respectively reduce to these same 1280 pixels on the larger side / 72dpi and set the quality to 70%
Solution:

find /input/ -iname "*.*" -print0 | xargs -0 mogrify -resize 1280x1280> -quality 70 -density 72

Problem:
Strange found: at the end of the command, it will throw the error
mogrify: unable to open image `70': @ error/blob.c/OpenBlob/2489.
It turned out that "70" is the value of the "-quality 70" parameter. I can't figure out why it's interpreted that way. And apparently the -quality value is not assigned, because even the compressed images are too heavy (and should not be so at 70% quality).
What is it connected with? Perhaps I screwed up something with the syntax? How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rakeev, 2013-09-25
@rakeev

Omg, where are the quotes around '1280x1280>'?
The symbol > is a stream redirection, it must be escaped.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question