Home » Images » Image_Transform » Bug #8573
Wrong image dimensions after _resize
Details
| Submitted | 2006-08-28 16:06 UTC |
|---|---|
| From | patrick dot strasser at tugraz dot at |
| Assigned | davidc |
| Status | Closed |
| Package | Image_Transform |
| PHP Version | Irrelevant |
| OS | Any |
| 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.