MSL and `modulate`

"Daniel Trebbien" <[email protected]>
Newsgroups gmane.comp.video.image-magick.bugs
Message-ID <[email protected]>
I just downloaded and installed ImageMagick-6.4.5-3-Q16-windows-dll on my
Windows 2000 laptop and I am having trouble with conjure/MSL. I think I
found a bug.

The attached `back.png` is the image that I would like to brighten.

Just to try to eliminate some variables, the following MSL script produces
an identical `back.png`:
<?xml version="1.0" encoding="UTF-8"?>
<image>
    <read filename="back.png"/>
    <write filename="back2.png" />
</image>

As does this one:
<?xml version="1.0" encoding="UTF-8"?>
<image>
    <read filename="back.png"/>
    <modulate />
    <write filename="back3.png" />
</image>

The interesting effect occurs when I try to use a parameter with <modulate>.
For example, I wanted to brighten the image, but the colors end up
yellowish:
<?xml version="1.0" encoding="UTF-8"?>
<image>
    <read filename="back.png"/>
    <modulate brightness="110" />
    <write filename="back4.png" />
</image>

The following should also produce an identical image, but it does not:
<?xml version="1.0" encoding="UTF-8"?>
<image>
    <read filename="back.png"/>
    <modulate brightness="100" />
    <write filename="back5.png" />
</image>

What's more, when using the command line, I get what I expect:
convert back.png -modulate 110 back6.png

All of these test images have been attached. I tried these scripts with the
Q8-dll version as well, and had the same problem.

Daniel

_______________________________________________
Magick-bugs mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.