Debian logoDebian Screenshots >

libimage-math-constrain-perl

Perl module performing math used to constrain image sizes

Description

Image::Math::Constrain is a Perl module that implements all of the math behind implementing image size constraints. It allows one to restrict the dimensions of an image by checking to see if the image is larger than the desired final dimensions, and if so, provide a way to scale the image down proportionally so it fits within the constraints. It can set constraints based on width, height, or both, and is guaranteed to return dimensions that are proportional to the original -- that is, they will have the same aspect ratio. It also returns the necessary scaling factor, so you can pass it to a module to do the work.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.


Homepage

https://metacpan.org/release/Image-Math-Constrain


Statistics

544 other people were interested in this package here. The newest known version of this software is 1.02-2 (Information last updated about 17 hours ago.)