Hiya,
my host hast GD 2 installed (without actual GIF support) and I wonder how I can find out the dimensions (height / width) of uploaded GIF files?
I know I can't manipulate GIFs with GD2 but I think it should be possible to read out there dimensions.
Anyone can help me there?
For JPEGs and PNGs I can do it just like that
move_uploaded_file($_FILES["image"]["tmp_name"], $pic_tmp);
$src = ImageCreateFromJPEG($pic_tmp);
$org_h = imagesy($src);
$org_w = imagesx($src);
resp.
$src = ImageCreateFromPNG($pic_tmp);
Thx