Re: FUNCTION TO CHECK IMAGE

From: Date: Mon, 11 Sep 2006 17:54:52 +0000
Subject: Re: FUNCTION TO CHECK IMAGE
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-241617@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 BBC wrote: >> BBC wrote: >>> Hi all. >>> I'm having a problem regarding image handling. Sometimes an image can be showed in >>> browser normally (in my computer) but when I >>> upload it into my site that image is not valid, so there is an issue in my >>> getimagesizes() function. >>> Is there any function to recover such problem? I used >>> "if(file_exists($image_path))" but it couldn't solve the problem. >>> Input would be appreciated >> - From what it sounds like you are doing, you are uploading a file through >> some form, then manipulating it's size. Is this correct? > > Yes it is, but the uploading was going well (size is ok). When I show the image on the web > using getimagesizes(), 'sometimes' such > image size couldn't be resolved. > Is there any function to define that image is ok or not? > >> What happens when you stop manipulating it's size and try to view just the uploaded >> file? > > Size of image (after or before uploading) would be same. but the issue still there (sometimes) > > What types of images are these? JPG, PNG, GIF? - -- Christopher Weldon, ZCE President & CEO Cerberus Interactive, Inc. cweldon@cerberusonline.com 979.739.5874 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFBaLsZxvk7JEXkbERAg62AJ4iWogZyWry445xv6bT8ld6Mfw79ACgkWhx zfIJGqxli9pHPHrcHoi8FjI= =sllc -----END PGP SIGNATURE-----

« previous php.general (#241617) next »