comparison OrthancFramework/Sources/Enumerations.cpp @ 5113:a3c3f13368ea

clarification that "image/jpg" is not a correct MIME type
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Nov 2022 14:28:50 +0100
parents b89833d7ce22
children 0ea402b4d901
comparison
equal deleted inserted replaced
5112:b89833d7ce22 5113:a3c3f13368ea
1726 else if (source == MIME_DICOM) 1726 else if (source == MIME_DICOM)
1727 { 1727 {
1728 target = MimeType_Dicom; 1728 target = MimeType_Dicom;
1729 return true; 1729 return true;
1730 } 1730 }
1731 else if (source == MIME_JPEG || source == MIME_JPG) 1731 else if (source == MIME_JPEG ||
1732 { 1732 source == "image/jpg")
1733 {
1734 // Note the tolerance for "image/jpg", which is *not* a standard MIME type
1735 // https://groups.google.com/g/orthanc-users/c/Y5x37UFKiDg/m/1zI260KTAwAJ
1736 // https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types
1733 target = MimeType_Jpeg; 1737 target = MimeType_Jpeg;
1734 return true; 1738 return true;
1735 } 1739 }
1736 else if (source == MIME_JPEG2000) 1740 else if (source == MIME_JPEG2000)
1737 { 1741 {