setting format with magickwand

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Xandros
Posts: 28
Joined: 2009-10-02T09:19:49-07:00
Authentication code: 8675309

setting format with magickwand

Post by Xandros »

steps to reproduce :
read tiff fax file with MagickReadFile (see my other thread from yesterday to get download link of sample file)
MagickResampleImage 72, 72 (to fix pixel aspect ratio)
MagickStripImage
MagickResizeImage
MagickSetImageFormat to 'PNG24'
MagickWriteFile 'result.png'

result png file is looking strange, not what it should be (some jaggy lines and thats about it)

if however I use

MagickWriteFile 'PNG24:result.png', the result is correct.

Also, using

MagickSetImageFormat to 'PNG24'
MagickGetImageBlob and then save to file outside of IM api > result correct.

Seems like MagickWriteFile ignores the format set with MagickSetImageFormat ?
Post Reply