From: Richard Millet Date: Thu, 9 Aug 2012 19:34:28 +0000 (-0700) Subject: CSPACE-5438: Correct the MIME type setting for the "original" image derivatives ... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=7c200a3b1ed181f64f0e85b53d57a97282b52241;p=tmp%2Fjakarta-migration.git CSPACE-5438: Correct the MIME type setting for the "original" image derivatives -was defaulting to JPEG. --- diff --git a/services/common/src/main/java/org/collectionspace/services/common/imaging/nuxeo/NuxeoImageUtils.java b/services/common/src/main/java/org/collectionspace/services/common/imaging/nuxeo/NuxeoImageUtils.java index c1826caed..704aefff3 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/imaging/nuxeo/NuxeoImageUtils.java +++ b/services/common/src/main/java/org/collectionspace/services/common/imaging/nuxeo/NuxeoImageUtils.java @@ -869,7 +869,7 @@ public class NuxeoImageUtils { if (derivativeTerm != null) { docBlob = pictureBlobHolder.getBlob(derivativeTerm); // Nuxeo derivatives are all JPEG - outMimeType.append(MIME_JPEG); + outMimeType.append(docBlob.getMimeType()); } else { docBlob = pictureBlobHolder.getBlob(); }