Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageMagick Preview Resoultion is not the same for all file formats #211

Open
MrRenesto opened this issue Apr 8, 2020 · 2 comments
Open
Assignees

Comments

@MrRenesto
Copy link

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
Copy link
Author

any news/updates on this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants