ניסיתי להשתמש בזה
PHP קוד:
$img = @imagecreatefromjpeg("http://www.mysite.com/my_image.jpg");
if ($img) {
$img_height = imagesy($img);
$img_width = imagesx($img);
ImageDestroy($img);
}
echo "My height is " . $img_height . "<br />\n";
echo "My width is " . $img_width;
זה מביא לי את השגיאה
imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error:
מה עושים?
או שיש פונקציה יותר פשוטה לקבל גובה ורוחב של תמונות gif,bmp,jpg,png,swf
תודה רבה