mogrify unrecognized option

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
wanoquoc
Posts: 2
Joined: 2018-12-25T07:52:21-07:00
Authentication code: 1152

mogrify unrecognized option

Post by wanoquoc »

I have command

Code: Select all

mogrify -path OutputDir -format jpg -flatten -quality 86 png:compression-level=9 *.*
when i'm trying to run it with files have string "+,=,&,.." in filename, it always error. So how i can make it run without error ?

Thank
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: mogrify unrecognized option

Post by fmw42 »

Please, always provide your IM version and platform when asking questions, since syntax may differ.

Also provide your exact command line and your images, if possible.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

If using Imagemagick 7, then see http://imagemagick.org/script/porting.php#cli


For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
https://github.com/ImageMagick/usage-markdown
https://imagemagick.org/script/porting.php#cli
wanoquoc
Posts: 2
Joined: 2018-12-25T07:52:21-07:00
Authentication code: 1152

Re: mogrify unrecognized option

Post by wanoquoc »

oh sorry

Version: ImageMagick 7.0.8-14 Q16 x64 2018-10-24 - Windows 10 64bit lastest update 1809


when i'm remove first string "+" in filename it work again, but i dont know why it recognized "+" in filename as option
\+the-wolf-and-moon=None&corona-australis_piynx5OnEC1r68v93o1_180620723089.jpg
\+the-wolf-and-moon=None&cygnus-wall_pjw03nJNrL1r68v93o1_181199489264.jpg
\+the-wolf-and-moon=None&dark-tower-in-scorpius_pinkzcRkDd1r68v93o1_180413458634.jpg
\+the-wolf-and-moon=None&flakstad-beach-norway_pj9vjmZK3e1r68v93o1_180830458829.jpg
\+the-wolf-and-moon=None&gemini-stars-pollux-and-castor_pk9of9QrGH1r68v93o1_181387755474.png
\+the-wolf-and-moon=None&geminid-meteor-shower_pjstujikhb1r68v93o1_181149010864.png
\+the-wolf-and-moon=None&hoags-galaxy_pjkf3hZ4d91r68v93o1_181012062449.jpg
\+the-wolf-and-moon=None&ic-1871-inside-the-soul_piwqfw7eN21r68v93o1_180586225319.jpg
\+the-wolf-and-moon=None&ic-5146-pink-cocoon_pit9lsdOP31r68v93o1_180522056124.jpg
\+the-wolf-and-moon=None&jupiter-horizon_pik72rRBd41r68v93o1_180352094459.jpg
\+the-wolf-and-moon=None&lunar-shipwreck-namibia_pirdpzX3ai1r68v93o1_180485136904.png
\+the-wolf-and-moon=None&m100-grand-galaxy_pjbnjcDJw81r68v93o1_180861733729.jpg
\+the-wolf-and-moon=None&m100-the-grand-galaxy-of-virgo_pkb231GkLz1r68v93o1_181405958164.png
\+the-wolf-and-moon=None&m16-the-fairy-and-creation-pillars_pj44mtNCpj1r68v93o1_180717616894.jpg
\+the-wolf-and-moon=None&m17-swan-wings_pk5vssplyt1r68v93o1_181331726534.jpg
\+the-wolf-and-moon=None&m43-orion-falls_pjmflrK2dW1r68v93o1_181044059269.png
\+the-wolf-and-moon=None&m8-lagoon-nebula_piq2r2T9Fu1r68v93o1_180461532904.jpg
\+the-wolf-and-moon=None&moraine-lake-canada_pjj26a1qpC1r68v93o1_180987146504.jpg
\+the-wolf-and-moon=None&ngc-1499-california-dreaming_pjy0vdGXui1r68v93o1_181223590279.jpg
\+the-wolf-and-moon=None&ngc-281-dragon-heart_pim9xkINKa1r68v93o1_180391255304.png
\+the-wolf-and-moon=None&ngc-7023-iris-nebula_pjfyrzJ8GO1r68v93o1_180934830454.jpg
\+the-wolf-and-moon=None&orions-belt-flame-and-horsehead_pj7y4gu7uw1r68v93o1_180794270114.png
\+the-wolf-and-moon=None&pleiades-star-cluster-in-taurus_pj18bxt4Rx1r68v93o1_180667736924.jpg
\+the-wolf-and-moon=None&rainbow-geminid-meteor_pjzgluGtmj1r68v93o1_181243051679.png
\+the-wolf-and-moon=None&rho-ophiuchus-cloud_pjolw2OZGo1r68v93o1_181079706749.jpg
\+the-wolf-and-moon=None&sister-andromeda_pk1gg0J6dD1r68v93o1_181269241964.jpg
\+the-wolf-and-moon=None&skogafoss-aurora-iceland_pig0azjrfq1r68v93o1_180273501099.png
\+the-wolf-and-moon=None&thank-you-for-175000-followers-i-am-humbled_pk76egDyzT1r68v93o2_181349199229.png
\+the-wolf-and-moon=None&the-flame-nebula-sparks-and-fire_pju6qp3q091r68v93o1_181170019014.jpg
\+the-wolf-and-moon=None&the-himalayas-where-the-earth-meets-the-sky_pj2ot09pqG1r68v93o1_180691950764.jpg
\+the-wolf-and-moon=None&trapped-stars-in-orions-heart_piuyneybnk1r68v93o1_180553816409.jpg
\-wolf-and-moon=None&andromeda-and-perseid-meteor_piifxfdubm1r68v93o1_180320419514.png
\-wolf-and-moon=None&antares-heart-of-the-scorpion_pj6ipfV0pf1r68v93o1_180765483279.png
\-wolf-and-moon=None&castor-and-pollux-gemini_pjgtjwqJSj1r68v93o1_180948701469.jpg
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: mogrify unrecognized option

Post by fmw42 »

try -define png:compression-level=9
Post Reply