Page 1 of 1

the -size and -resize options are ignored if the output is a fax filetype

Posted: 2018-02-13T12:09:48-07:00
by atariZen
The source file has geometry 2592x1944+0+0

Code: Select all

$ convert color_source.jpg -threshold 30% -rotate 90 -size 1734x2156 output.fax
$ identify -verbose output.fax | grep geom
Page geometry: 2592x2592+0+0
Imagemagic does the wrong thing when I omit the "-size" parameter. It should produce a fax-conforming file, which means one of 3 possible geometries. Instead it creates a file with geometry 2592x2592+0+0. So in the example above I micro-managed it, and tried to force a proper geometry. The parameter was ignored. The "-resize" option also fails to have effect:

Code: Select all

$ convert source.jpg -threshold 30% -rotate 90 -resize 1734 output.fax
$ identify -verbose output.fax | grep geom
Page geometry: 2592x2312+0+0

Re: the -size and -resize options are ignored if the output is a fax filetype

Posted: 2018-02-13T12:49:50-07:00
by fmw42
I am not sure why that does not work. It fails for me on IM 6.9.9.34 Q16 Max OSX.

Try

Code: Select all

convert source.jpg -resize 1734 -rotate 90 -threshold 30% -compress FAX output.tif
or

Code: Select all

convert source.jpg -resize 1734 -rotate 90 -threshold 30% -compress Group4 output.tif

See https://www.imagemagick.org/script/comm ... p#compress