Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the Imager CPAN distribution.

Maintainer(s)' notes

Tickets for Imager are now on github at

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

Owner: Nobody in particular
Requestors: TONYC [...]

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 infrastructure.

Please report any issues with to