From 8364f184fc6645503f0b23e97ac3bf782180e2ee Mon Sep 17 00:00:00 2001 From: Ray Gauss Date: Mon, 13 May 2013 13:44:30 +0000 Subject: [PATCH] Merged BRANCHES/DEV/HEAD-QA to HEAD: 49458: Merged BRANCHES/DEV/HEAD-BUG-FIX to BRANCHES/DEV/HEAD-QA: 49117: Merged BRANCHES/DEV/CONV_V413 to BRANCHES/DEV/HEAD-BUG-FIX: 49111: - Revert of r47645 - Change of imgpreview thumbnailDefinition to mimetype and size expected for HEAD - Relates to ALF-5051 and MNT-8599 / ALF-18726 49118: Restored high resolution placeholder icons for imgpreview, relates to ALF-13984 49979: ALF-18726: Alfresco could not start with WCMQS applied - Updated RenditionServiceIntegrationTest with new imgpreview values git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@49980 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/repository.properties | 12 +- config/alfresco/thumbnail-service-context.xml | 283 ++++++++++-------- .../RenditionServiceIntegrationTest.java | 6 +- 3 files changed, 162 insertions(+), 139 deletions(-) diff --git a/config/alfresco/repository.properties b/config/alfresco/repository.properties index 5a71f920c6..20232aca93 100644 --- a/config/alfresco/repository.properties +++ b/config/alfresco/repository.properties @@ -621,12 +621,12 @@ system.thumbnail.generate=true # Default thumbnail limits # When creating thumbnails, only use the first pageLimit pages -system.thumbnail.definition.doclib.timeoutMs=-1 -system.thumbnail.definition.doclib.readLimitTimeMs=-1 -system.thumbnail.definition.doclib.maxSourceSizeKBytes=-1 -system.thumbnail.definition.doclib.readLimitKBytes=-1 -system.thumbnail.definition.doclib.pageLimit=1 -system.thumbnail.definition.doclib.maxPages=-1 +system.thumbnail.definition.default.timeoutMs=-1 +system.thumbnail.definition.default.readLimitTimeMs=-1 +system.thumbnail.definition.default.maxSourceSizeKBytes=-1 +system.thumbnail.definition.default.readLimitKBytes=-1 +system.thumbnail.definition.default.pageLimit=1 +system.thumbnail.definition.default.maxPages=-1 # Max mimetype sizes to create thumbnail icons system.thumbnail.mimetype.maxSourceSizeKBytes.pdf=-1 diff --git a/config/alfresco/thumbnail-service-context.xml b/config/alfresco/thumbnail-service-context.xml index 04bdd7511c..87d1ccdd1d 100644 --- a/config/alfresco/thumbnail-service-context.xml +++ b/config/alfresco/thumbnail-service-context.xml @@ -55,6 +55,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -66,136 +213,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + diff --git a/source/java/org/alfresco/repo/rendition/RenditionServiceIntegrationTest.java b/source/java/org/alfresco/repo/rendition/RenditionServiceIntegrationTest.java index 920c4ee302..e61bd844c7 100644 --- a/source/java/org/alfresco/repo/rendition/RenditionServiceIntegrationTest.java +++ b/source/java/org/alfresco/repo/rendition/RenditionServiceIntegrationTest.java @@ -1413,9 +1413,9 @@ public class RenditionServiceIntegrationTest extends BaseAlfrescoSpringTest // 4. "imgpreview" parameterValues.clear(); - parameterValues.put(AbstractRenderingEngine.PARAM_MIME_TYPE, MimetypeMap.MIMETYPE_IMAGE_PNG); - parameterValues.put(ImageRenderingEngine.PARAM_RESIZE_WIDTH, 480); - parameterValues.put(ImageRenderingEngine.PARAM_RESIZE_HEIGHT, 480); + parameterValues.put(AbstractRenderingEngine.PARAM_MIME_TYPE, MimetypeMap.MIMETYPE_IMAGE_JPEG); + parameterValues.put(ImageRenderingEngine.PARAM_RESIZE_WIDTH, 960); + parameterValues.put(ImageRenderingEngine.PARAM_RESIZE_HEIGHT, 960); parameterValues.put(ImageRenderingEngine.PARAM_MAINTAIN_ASPECT_RATIO, true); parameterValues.put(ImageRenderingEngine.PARAM_RESIZE_TO_THUMBNAIL, true); parameterValues.put(ImageRenderingEngine.PARAM_ALLOW_ENLARGEMENT, false);