# HG changeset patch # User Alain Mazy # Date 1669200464 -3600 # Node ID b89833d7ce223e73e3db1ee3b93a87f8ee1fbf9b # Parent 7547c7dfd0172c37447c9fc414a988a46b25f9e7 Fix support for image/jpg mime type in /tools/create-dicom diff -r 7547c7dfd017 -r b89833d7ce22 NEWS --- a/NEWS Tue Nov 22 18:01:23 2022 +0100 +++ b/NEWS Wed Nov 23 11:47:44 2022 +0100 @@ -25,6 +25,7 @@ * /modalities/.../store now accepts "CalledAet", "Host", "Port" to override the modality configuration from the configuration file for a specific operation. * /tools/metrics-prometheus: added orthanc_last_change and orthanc_up_time_s +* Fix support for image/jpg mime type in /tools/create-dicom OrthancFramework (C++) diff -r 7547c7dfd017 -r b89833d7ce22 OrthancFramework/Sources/Enumerations.cpp --- a/OrthancFramework/Sources/Enumerations.cpp Tue Nov 22 18:01:23 2022 +0100 +++ b/OrthancFramework/Sources/Enumerations.cpp Wed Nov 23 11:47:44 2022 +0100 @@ -1728,7 +1728,7 @@ target = MimeType_Dicom; return true; } - else if (source == MIME_JPEG) + else if (source == MIME_JPEG || source == MIME_JPG) { target = MimeType_Jpeg; return true; diff -r 7547c7dfd017 -r b89833d7ce22 OrthancFramework/Sources/Enumerations.h --- a/OrthancFramework/Sources/Enumerations.h Tue Nov 22 18:01:23 2022 +0100 +++ b/OrthancFramework/Sources/Enumerations.h Wed Nov 23 11:47:44 2022 +0100 @@ -35,6 +35,7 @@ static const char* const MIME_BINARY = "application/octet-stream"; static const char* const MIME_JPEG = "image/jpeg"; + static const char* const MIME_JPG = "image/jpg"; static const char* const MIME_JSON = "application/json"; static const char* const MIME_JSON_UTF8 = "application/json; charset=utf-8"; static const char* const MIME_PDF = "application/pdf";