When you save your images on your server you must ensure you don't use any reserved characters, for best practice do not put any of: $&+,/:;=?@<>#%{}|^~[]` or any spaces or any quotes, breaking these rules is likely to cause failure in one browser or another.
Additionally it is advisable to use all lower case, as using upper case, or mixture can cause issues in some circumstance.
You may wish to break these rules for convenience (ie matching image to product/model etc.) but that's always a bad idea, as your convenience may cause your visitors to not see what you want them to see.
If you use Photoshop its 'Save For Web' option will ensure you use valid filenames.
A problem can arise in that your clients may be un-aware, or forget these rules, this simple mod will ensure your pictures will always be saved with valid filenames.
open admin/includes/classes/upload.php
find (120):
$this->filename = $filename;
replace with:
$this->filename = strtolower(preg_replace(array('/[^\w\(\).-]/i','/(_)\1+/'),'_',$filename));
What that does is replace any characters 'not allowed' with a underscore (_) it also ensures you wont get repeated underscores as a result, it also converts all uppercase chars to lowercase.
That filename will be used for the save to your server & will be saved to your dBase entry, but does mean uploaded image filenames may vary from the original on your PC.
Additional Common Issue:
This comes up very often, so I`ll repeat it here too.
JPEG Files (.jpg/.jpeg) can be saved in an number of colour space modes:
RGB (separate RGB channels)
CMYK (Cyan Magenta Yellow Black)
YCbCr (three channel component)
YCbCrK (four channel component)
The three latter are all derivative of the original RGB mode (ie anyone tells you Component is better than RGB they are talking bunkum).
Internet Explorer (IE) can only display images saved with a RGB colour space mode, so if you have the issue:
My images (pictures) are not appearing in IE although they are displayed fine in Firefox, its quite possible you have this problem.
I hope this is helpful to some [img]http://forums.oscommerce.com/public/style_emoticons/default/smile.gif[/img]















