nielse63 / php-image-cache

Image Cache is a very simple PHP class that accepts an image source and will compress and cache the file, move it to a new directory, and returns the new source for the image.
http://nielse63.github.io/php-image-cache
Other
456 stars 104 forks source link

JPG (.jpg) not working #23

Open ibnbd opened 8 years ago

ibnbd commented 8 years ago

I am trying your class with JPG file getting lot of errors

first was "The file you supplied isn\'t a valid image."

Then I commented the if condition just to check, then got "The image you supply must have a .gif, .jpg/.jpeg, or .png extension." Then I checked "$file_mime_as_ext" and it dump "octet-stream" for jpg file. I know it's some kind of mime problem. Any idea how to fix it?

Thanks in advance