Skip Menu |
 

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 51254
Status: resolved
Priority: 80/
Queue: Imager

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

Bug Information
Severity: Wishlist
Broken in: 0.70
Fixed in: 0.79



Subject: convert() is used to swap channels a lot, add optimizations for that case
Download (untitled) / with headers
text/plain 395b
From several support requests, I've seen people use the convert() method simply to change the channel order. The current implementation does (M+1)xN floating point multiplications, where M is the source channel count and N is the output channel count, this is overkill for swapping channels around. Detect the channel swapping case (all channels have one 1 and the rest 0) and optimize for it.
Fixed in Imager 0.79


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.