This queue is for tickets about the Imager CPAN distribution.

Maintainer(s)' notes

Tickets for Imager are now on github at https://github.com/tonycoz/imager

Report information
The Basics
Id:
32926
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
TONYC [...] cpan.org
Requestors:
TONYC [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Critical
Broken in:
0.62
Fixed in:
(no value)



Subject: 16-bit TGA alpha channel (bit) inverted
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Charset: utf8
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1202181226-2794-7"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 64
Imager loads the attached image with the alpha channel inverted.
Subject: brand.tga
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1202181225-2794-6"
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Charset: utf8
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0
Content-Type: image/x-targa; name="brand.tga"
Content-Disposition: inline; filename="brand.tga"
Content-Transfer-Encoding: base64
Content-Length: 720044
brand.tga
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-26984-1206435787-36.32926-0-0@rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 250
On Mon Feb 04 22:13:51 2008, TONYC wrote:
Show quoted text
> Imager loads the attached image with the alpha channel inverted.
More complex than simple inversion. The sample image has the number of attribute bits set to 0, so the alpha channel bit should be ignored.
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-26984-1206435787-36.32926-0-0@rt.cpan.org>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
References: <rt-3.6.HEAD-26984-1206435787-36.32926-0-0@rt.cpan.org>
Message-Id: <rt-3.6.HEAD-26960-1206441988-435.32926-0-0@rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 171
On Tue Mar 25 05:03:07 2008, TONYC wrote:
Show quoted text
> The sample image has the number of attribute bits set to 0, so the alpha > channel bit should be ignored.
Actually it doesn't.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-26984-1206444482-130.32926-0-0@rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 432
The old behaviour seemed correct, but the documentation in the TGA specification didn't provide a whole lot of information. The sample file I received appears to have the correct header values set for an alpha channel but has all of the alpha channel bits set to zero. The GIMP treats this bit being 1 as transparency. See http://bugzilla.gnome.org/show_bug.cgi?id=114913 for some discussion. So I'll match the GIMP's behaviour.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-31213-1207561799-209.32926-0-0@rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 20
fixed in Imager 0.63


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.