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.
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?
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