getImageHeight() with a gif
Posted: 2010-05-06T00:14:08-07:00
Hi,
i'm trying to setup a script able to crop a banner to a predifined ratio and everything is working fine with jpegs but when I try it with a gif, it's returning the wrong Height. My gif is a 5 frames animated one with a plain gray background and a black number in the middle of it. getImageHeight() seems to be oddly returning the height of the number insted of the height of the gif. Since my background is plain, 'm wondering if it may have something to do with transparency.
Thank You,
Patrick H.
i'm trying to setup a script able to crop a banner to a predifined ratio and everything is working fine with jpegs but when I try it with a gif, it's returning the wrong Height. My gif is a 5 frames animated one with a plain gray background and a black number in the middle of it. getImageHeight() seems to be oddly returning the height of the number insted of the height of the gif. Since my background is plain, 'm wondering if it may have something to do with transparency.
Thank You,
Patrick H.