MagickSetImageDepth not working?
Posted: 2009-01-26T05:20:11-07:00
hi,
using IM 6.3.8 and magickwand 1.0.5, it seems that MagickSetImageDepth is not doing its job properly:
via php sample :
followed by :
-----------
same via convert :
is this a bug? or a bad way of using magickwand?
thanks for helping
using IM 6.3.8 and magickwand 1.0.5, it seems that MagickSetImageDepth is not doing its job properly:
via php sample :
Code: Select all
<?php
$localPath = '53364.eps';
$destPath = 'output.png';
$origImgMedia = NewMagickWand();
MagickReadImage($origImgMedia, $localPath);
MagickSetImageFormat($origImgMedia, 'PNG24');
MagickSetImageDepth($origImgMedia, 8, MW_AllChannels);
MagickWriteImage($origImgMedia, $destPath);
?>
Code: Select all
# identify output.png
output.png PNG 192x300 192x300+0+0 DirectClass 16-bit 272.803kb
same via convert :
Code: Select all
#convert 53364.eps -depth 8 output-convert.png
# identify output-convert.png
output-convert.png PNG 192x300 192x300+0+0 DirectClass 8-bit 169.799kb
thanks for helping