Skip Menu |
 

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 97404
Status: open
Priority: 80/
Queue: Imager

People
Owner: Nobody in particular
Requestors: jt [...] plainblack.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
X-Eon-Sig: AQLogdxTzoXMlqiR6wIAAAAB,b9394da4c1cb18c245234ae170b84cfc
X-Spam-Status: No, score=-1.9 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
X-Mailer: Apple Mail (2.1878.6)
X-Spam-Flag: NO
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1407220177
Message-ID: <75EEB1CE-2E9F-4AB9-AF12-B1912B4DF727 [...] plainblack.com>
Content-Type: multipart/mixed; boundary="Apple-Mail=_D41C4D34-5E68-4167-A0E3-8FB128C9AC6D"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -1.9
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id A33B32404A7 for <cpan-bug+Imager [...] hipster.bestpractical.com>; Tue, 22 Jul 2014 11:40:14 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5S96Y4pOgfxY for <cpan-bug+Imager [...] hipster.bestpractical.com>; Tue, 22 Jul 2014 11:40:13 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 62B6C240488 for <bug-Imager [...] rt.cpan.org>; Tue, 22 Jul 2014 11:40:12 -0400 (EDT)
Received: (qmail 11121 invoked by alias); 22 Jul 2014 15:40:08 -0000
Received: from imta-35.everyone.net (HELO imta-35.everyone.net) (216.200.145.35) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 22 Jul 2014 08:40:01 -0700
Received: from pps.filterd (omta001.sj2.proofpoint.com [127.0.0.1]) by imta-38.everyone.net (8.14.5/8.14.5) with SMTP id s6MFceG3027086 for <bug-Imager [...] rt.cpan.org>; Tue, 22 Jul 2014 08:39:57 -0700
Received: by dm0215.mta.everyone.net (EON-AUTHRELAY2 - 475773ce) id dm0215.53c897c1.177df for <bug-Imager [...] rt.cpan.org>; Tue, 22 Jul 2014 08:39:56 -0700
Delivered-To: cpan-bug+Imager [...] hipster.bestpractical.com
Subject: Alpha not working in Imager 0.99
X-Eon-DM: dm0215
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.14,0.0.0000 definitions=2014-07-22_06:2014-07-22,2014-07-22,1970-01-01 signatures=0
Return-Path: <jt [...] plainblack.com>
X-RT-Mail-Extension: imager
X-Original-To: cpan-bug+Imager [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Tue, 22 Jul 2014 10:39:55 -0500
X-Spam-Level:
X-Originating-Ip: 71.87.115.206
To: bug-Imager [...] rt.cpan.org
From: JT Smith <jt [...] plainblack.com>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: cp1252
Content-Length: 355
Download (untitled) / with headers
text/plain 355b
I tried getting alpha transparencies working following the instructions here: http://imager.perl.org/docs/Imager/Color.html However, no matter what I do, the alpha channel doesn’t seem to work. I may be doing something wrong, or it may be broken. I thought I should report it to find out. I’ve attached some sample code and a sample output image.
Content-Type: image/png; name="alpha-test.png"; x-unix-mode="0644"
Content-Disposition: inline; filename="alpha-test.png"
Content-Transfer-Encoding: base64
Content-Length: 667
Download alpha-test.png
image/png 667b
alpha-test.png
Content-Type: text/x-perl-script; name="alpha.pl"
Content-Disposition: attachment; filename="alpha.pl"
Content-Transfer-Encoding: 7bit
Content-Length: 474
Download alpha.pl
text/x-perl 474b

Message body is not shown because sender requested not to inline it.

MIME-Version: 1.0
In-Reply-To: <75EEB1CE-2E9F-4AB9-AF12-B1912B4DF727 [...] plainblack.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <75EEB1CE-2E9F-4AB9-AF12-B1912B4DF727 [...] plainblack.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-29917-1406208104-1623.97404-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 1101
On Tue Jul 22 11:40:15 2014, jt@plainblack.com wrote: Show quoted text
> I tried getting alpha transparencies working following the > instructions here: http://imager.perl.org/docs/Imager/Color.html > > However, no matter what I do, the alpha channel doesn’t seem to work. > I may be doing something wrong, or it may be broken. I thought I > should report it to find out. > > I’ve attached some sample code and a sample output image.
It's more a missing feature. By default, box(), and most other methods, replace the underlying pixel rather than combining with it. If you sample had used a 4 channel image, the blue part of the image would have been translucent. This is something I plan to change, someday, but there are other issues I want to fix first. You can use fill objects (and Imager's shortcut for fill objects) to do transparent fills: $image->box(fill => { solid => $color, combine => "normal" }, xmin => 150, ymin => 150, xmax => 250, ymax => 250) or die $image->errstr; Note that setting "filled" to non-zero as you did causes the "fill" parameter to be ignored. Tony


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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