alfresco-transform-core icon indicating copy to clipboard operation
alfresco-transform-core copied to clipboard

ImageMagick Preview Resoultion is not the same for all file formats

Open MrRenesto opened this issue 5 years ago • 2 comments

When using Alfresco 6.2.0 with ImageMagick (latest) im getting different Preview Resoultion based on different file formats. PNG & JPEG generate previews in 1024 px (as expected) while other file formats like PDF generates a preview in 841 px or 842 px and TXT in 792 px.

Im using Alfresco Community Version 6.2.0 and the helm chart from https://github.com/Alfresco/acs-community-deployment. For ImageMagick im using the latest tag of https://hub.docker.com/r/alfresco/alfresco-imagemagick/tags

In my code im using org.alfresco.repo.rendition2.RenditionService2 to render the preview. My Bean configuration:

<bean id="xxxx" class="org.alfresco.repo.rendition2.RenditionDefinition2Impl">
<constructor-arg name="renditionName" value="xxx"/>
<constructor-arg name="targetMimetype" value="image/png"/>
<constructor-arg name="transformOptions">
<map>
<entry key="resizeWidth" value="1024"/>
<entry key="resizeHeight" value="1024"/>
<entry key="allowEnlargement" value="false" />
<entry key="maintainAspectRatio" value="true"/>
<entry key="thumbnail" value="true"/>
<entry key="timeout" value="${system.thumbnail.definition.default.timeoutMs}" />
</map>
</constructor-arg>
<constructor-arg name="registry" ref="renditionDefinitionRegistry2"/>
</bean>

I used the same code and configuration in 6.1.2 and got the expected result that all file formats are at 1024 px.

I created 3 simple documents i can reproduce this issue with: I uploaded them to v6.2.0 and v.6.1.2 and downloaded the preview with those results:

Test.pdf Test.png Test.txt 6 1 2ThumbnailPdf 6 1 2ThumbnailPng 6 1 2ThumbnailTxt 6 2 0ThumbnailPdf 6 2 0ThumbnailPng 6 2 0ThumbnailTxt

Please let me know if you need more information. I dont work reagulary or much with Alfresco so im not sure which other information may be necessary.

MrRenesto avatar Apr 08 '20 13:04 MrRenesto

For ref: https://hub.alfresco.com/t5/alfresco-content-services-forum/preview-resolution-after-upgrade-to-6-2-0-has-changed/td-p/297783

montgolfiere avatar Apr 08 '20 16:04 montgolfiere

any news/updates on this issue ?

MrRenesto avatar Apr 22 '20 05:04 MrRenesto