PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Images » Image_Transform » Bug #8573

Wrong image dimensions after _resize

Details

Submitted2006-08-28 16:06 UTC
Frompatrick dot strasser at tugraz dot at
Assigneddavidc
StatusClosed
PackageImage_Transform
PHP VersionIrrelevant
OSAny
Roadmaps(Not assigned)

Comments

[2006-08-28 16:06 UTC] patrick dot strasser at tugraz dot at

Description:
------------
After using an kind of scale, which calls _resize, the new dimensions can not be accessed by getImageWidth and getImageHeight. The handle points to the new image, though, so there seems to be no good reason to return the old dimensions.
If the old image is still accessible, one could us this for multiple resizes (quite fine), but then there schould be some means to access the new dimensions like getNewImageWidth/Height.

Workaround: access $this->new_x and $this->new_y direct, but that's not good OO practice.