jpeg images - inconsistent extensions

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
this bit of code in pictureservice getimageurl -

switch (lastPart)
            {
                case "pjpeg":
                    lastPart = "jpg";
                    break;
                case "x-png":
                    lastPart = "png";
                    break;
                case "x-icon":
                    lastPart = "ico";
                    break;
            }


will put a .jpg on the end of some images, but if the mime type is jpeg (instad of pjpeg), it will have an extension of .jpeg. This leads to having inconsistent file extensions across jpeg image, some have .jpg and some .jpeg. My store seems to have a mix of both throughout it
12 years ago
Thanks for info. Could you please an image file which causes wrong file extension generation?
12 years ago
will do. I had one in the debugger yesterday, so will try to find it again ;)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.