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

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
atariZen
Posts: 25
Joined: 2016-02-09T12:58:42-07:00
Authentication code: 1151

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

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
Post Reply