Gregwar / Image

A PHP library to handle images
MIT License
1k stars 191 forks source link

More possibilities to get information about the current image #23

Closed func0der closed 10 years ago

func0der commented 11 years ago

Hey there,

since your class does not support dimension calculation for all resizing methods (e.g. cropZoom) I wanted to suggest that you implement some methods to get information about the current image. I am talking about height, width and so on. So it would be easier to calculate the dimensions outside the class without the need of another ressource or that getimagesize() non-sense.

Regards func0der

Gregwar commented 11 years ago

Hi,

Actually, you have already the width() and the height() methods that can be used to get the imagesx and the imagesy of the gd resource

The problem with getting the size of the resized image is that when the image is in the cache we don't actually know the size, we would have either to calculate it or to get it from the cache file that already exists

What is your application goal?

Gregwar commented 10 years ago

This issue is too old and unclear