Comments (2)
Sorry about the delay in getting back to you.
As far as I can tell the explanation is correct.
This describes a call like:
my $img = Imager->new(xsize => 400, ysize => 200); # dimensions 2:1
my $new = $img->scale(xpixels => 300, ypixels => 160, type => $type);
Unless $type
is nonprop
scale tries to make the ratio of the dimensions of the output image match that of the input image.
In this case the requested size is 300 x 160, which doesn't match that ratio 2:1, we could use xpixels and get 300 x 150 or ypixels and get 320 x 160, min
selects the smaller size, while max
selects the larger size.
Did I miss something, or does the pod need more or better words to distinguish the two cases?
from imager.
from imager.
Related Issues (20)
- T1 tests fail under Strawberry perl 5.36 and 5.38, gcc13.1 HOT 12
- high RAM usage when reading in HEIF/HEIC format HOT 8
- JPEG: handle 12-bit images, since apparently libjpeg-turbo 2.2 can do both in one binary
- TIFF: prevent deprecated warnings HOT 1
- TIFF: use TIFFOpenOptions when available for better multi-threaded support HOT 1
- TIFF: audit tag types HOT 1
- TIFF: require tifflib 4.1.0 and eliminate workarounds for older tifflib HOT 1
- TIFF: add newer compression methods HOT 1
- TIFF: add EXIF support
- Win32: fix "unicode bug"
- Win32: use more modern text drawing API
- raw: assumes image memory layout
- libtiff CVE-2023-6277 patch and TIFF file size == 0 HOT 1
- Some Imager* modules are not properly indexed at CPAN HOT 2
- Failing test 10tiff.t with version 1.022 HOT 5
- TIFF: add CI and support for libtiff supplied with RHEL 8 HOT 4
- apidocs: enforce category and synopsis
- apidocs: allow definition of a category header
- apidocs: modulify and base a test on it
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imager.