When I cause the resizing on images using the application engine, they keep aspect ratio - I do not get the size that I ask for.
I'm trying to make NTSC rectangular pixel images from square pixel sources, so I don't want this behavior
I want to take a 720x540 image and resize it to 720x480, but what I actually get when I request a resize is a 640x480 image.
Is there any way around this?
, PIL , , images App Engine ( , SDK PIL API ) - , resize . , , , !
images
resize
, ?
http://code.google.com/appengine/docs/python/images/functions.html
, .
crop?
crop
720x540 720x480 (, ):
crop(bytestream, 0, 0.055, 1, 0.945, output)
crop , 0.0 1.0.
Source: https://habr.com/ru/post/1719075/More articles:Error drawing on QWidget output from GUI - c ++How to check if NetStream is working - actionscript-3iPhone App Launches Without Crashes - iphoneЕдинство и делегат - c#ExtJs checkboxselectionmodel - extjsLinking a PHP extension written in C - phpIs there an HTML5 RIA toolkit? - html5Visual Studio crashes when trying to open a solution running a TFS source - visual-studio-2008Acceptance of crossed out handwritten words - pattern-matchingdisable java log rotation - javaAll Articles