graphicsmagick - gm convert: Unrecognized units type -


i try compress png graphicsmagick(1.3.23 q8), here command:

gm convert -units undefined -type palette -define png:format=png8 src.png dest.png 

and comes error:

gm convert: unrecognized units type (undefined). 

"gm convert -help" shows units type supports pixelsperinch, pixelspercentimeter, or undefined.

acctually, try imagemagick(7.0.1-6 q8 x86_64),and command following works fine:

convert -units undefined -type palette -define png:format=png8 src.png dest.png 

i confused error.

use "+units" instead of "-units undefined" (this works both imagemagick , graphicsmagick). in general, can use "+option" turn off options. documentation should clarified.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -