Skip Menu |

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 11872
Status: resolved
Priority: 40/
Queue: Imager

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

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

Subject: add a method to compose an image from source channels
Download (untitled) / with headers
text/plain 462b
perhaps something like: # output uses im2 channel 0 as channel 0, im1 channel 1 as # channel 1, im1 channel 2 as channel 2 my $out = Imager->compose_channels(images=>[ $im1, $im2,... ], sources => [ 1, 0, 0 ], channels => [ 0, 1, 2 ]); Would be nice to be able to combine the values too, which would require a 3d matrix (indexed by output channel, source channel, source image).
Download (untitled) / with headers
text/plain 191b
It's probably best to just supply the images, for example: my $out = Imager->compose_channels(images=>[ $im2, $im1, $im1 ], channels => [ 0, 1, 2 ]);
Implemented with the combine() method in Imager 0.79.

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

Please report any issues with to