Page 1 of 1

setting format with magickwand

Posted: 2009-10-11T19:44:55-07:00
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 ?