I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-06-22 03:38:59.238671-07 by dfr
convert(matrix => matrix from flash)
Is it possible somehow adopt transform matrices produced in flash colormatrix module (http://www.adobe.com/devnet/flash/articles/matrix_transformations_04.html) to use it with Imager and its "convert" method ?
Direct Responses: 12790 | Write a response
Posted on 2010-06-22 03:56:46.35652-07 by tonyc in response to 12789
Re: convert(matrix => matrix from flash)

It's very similar in concept.


There's two main differences:


1. Imager images aren't always 4 channels (RGBA), but can be 1 (grey), 2 (grey+alpha), 3 (RGB) or 4 channels (RGBA), and the matrix needs to be adjusted for that.


2. The convert() matrixes use a 0.0 to 1.0 sample model instead of a 0 to 255 sample model.


It should be possible to convert any matrix used for flash colormatrix to a matrix for Imager's convert().

Direct Responses: 12791 | Write a response
Posted on 2010-06-22 14:29:34.566887-07 by dfr in response to 12790
Re: convert(matrix => matrix from flash)
Look like there is a showstopper, flash matrix has 5th column - "offset", which seem hardly projected into Imager world.
Direct Responses: 12792 | Write a response
Posted on 2010-06-22 15:45:00.382045-07 by tonyc in response to 12791
Re: convert(matrix => matrix from flash)

Imager has the offset column, though the specification of the matrix in the documentation isn't clear about it.


Some of the examples use it though.

Direct Responses: Write a response