On Mon Oct 20 09:34:13 2014, oha@opera.com wrote:
Show quoted text> On 10/20/2014 02:09 PM, TONYC via RT wrote:
> > <URL:
https://rt.cpan.org/Ticket/Display.html?id=99507 >
> >
> > By default Imager treats the icon mask as an alpha channel, since
> > some Windows API calls will effectively use it as one.
> >
> > The mask on your sample image is fairly random.
> >
> > Try calling read with
> >
> > ico_masked => 0
> >
> > to skip that and let me know if it fixes the problem for you.
>
> this actually fixed the issue, and I still have the "right"
> transparency. I just wonder if I can safely use this on any other case
> (so far, it seems ok)
>
> So yes, it is working.
It isn't safe, since ico_masked => 0 will skip using the mask as an alpha channel on palletted icons too.
I'll add another option to control masking for images that already have an alpha channel.
Tony