Page 1 of 1

ERR outputting TIFF to JPG on fd:1 in script mode IM7

Posted: 2014-09-27T02:21:00-07:00
by chrisedwards
Good morning,

Executing the following:

Code: Select all

magick.exe -script -
Running:

Code: Select all

-read "test.tif"[0]

Code: Select all

-format "jpeg" -define jpeg:dct-method=float -format "jpeg" -resize "196x196^" -gravity "center" -crop "196x196+0+0" +repage -quality 80 -strip -write fd:1
Produces the following error:

Code: Select all

II*     TIFFAppendToStrip: Maximum TIFF file size exceeded.
magick.exe: Maximum TIFF file size exceeded. `TIFFAppendToStrip' @ error/tiff.c/TIFFErrors/560.
magick.exe: Error flushing data before directory write. `TIFFWriteDirectorySec' @ error/tiff.c/TIFFErrors/560.
Running the same command with -write to a normal file does not produce the error. Output should be around 10kb, works find when input is JPG or PSD.

Windows 8.1 x64 Q16 standard build options - source from about a week ago.

Re: ERR outputting TIFF to JPG on fd:1 in script mode IM7

Posted: 2014-09-27T02:42:18-07:00
by chrisedwards
If I specify

Code: Select all

-write jpeg:fd:1
It works fine. I was very much misinterpreting what "-format" does for magick (I was thinking mogrify usage).

Is there a way to set format beforehand with magick/convert without specifying it at output?

This isn't a bug.

Re: ERR outputting TIFF to JPG on fd:1 in script mode IM7

Posted: 2014-09-27T06:19:29-07:00
by snibgo
In "convert", "-format" specifies the content of text output.

The output type is specified by an extension or prefix. If neither is given, the type is taken from the input file.

[Mod note: I'm moving this to Users.]