Hi,

For a web application, I draw an image with some
polygons, multiply the Opacity channel by some value
(say 0.25) to achieve some transparency and output
this as PNG. This works good. However, because no
wide-spread browser can cope with printing transparent
PNGs, I have to also make GIF versions of the same
images. This is when it goes wrong. Here are the
examples of the PNG and GIF versions of the same
image:

http://parking.pc-partner.nl/gettile.png
http://parking.pc-partner.nl/gettile.gif

No special settings applied, both produced (after
drawing the actual polygons) as follows:

$image->Evaluate(value => 0.5, operator => 'Multiply',
channel => 'Opacity');
$image->Set(filename => 'test.png'); ## Or test.gif
my @blobs = $image->ImageToBlob();

There are just some 4 actual colors (if you don't
count antialiasing) in the PNG image, so it's not the
lack of colors which makes it look this way.

Perhaps I am missing something?

Any help would be appreciated!

Thanks,

Andrey.


        

        
                
________________________________________________________
Вы уже с Yahoo!? 
Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.com
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to