newFile.createThumbnail(thumbnailName, true);
in fase di upload ma poi lato share, la navigazione della Libreria Digitale mostra i documenti con la thumbnail di fallback (le rotelline).
15:07:57,041 User:alfresco.gsd DEBUG [repo.jscript.ScriptLogger]
creating thumbnail doclib
15:07:57,079 User:alfresco.gsd DEBUG [repo.jscript.ScriptLogger]
error is JavaException: org.alfresco.service.cmr.repository.ContentIOException: 00292957 Content conversion failed:
reader: ContentAccessor[ contentUrl=store://2014/1/29/15/7/5f6af871-f5a4-44aa-b730-8063694dddf4.bin,
mimetype=application/pdf, size=93245, encoding=UTF-8, locale=it]
writer: ContentAccessor[ contentUrl=store://2014/1/29/15/7/be5d14a5-c0a8-4f65-85c9-d6b271110f4e.bin,
mimetype=image/png, size=0, encoding=UTF-8, locale=it]
options: ImageTransformationOptions[ commandOptions=, resizeOptions=org.alfresco.repo.content.transform.magick.ImageResizeOptions@28ffe174]
convert
funziona correttamente.
<bean class="org.alfresco.repo.thumbnail.ThumbnailDefinition">
<property name="name" value="doclib" />
<property name="mimetype" value="image/png"/>
<property name="transformationOptions">
<bean class="org.alfresco.repo.content.transform.magick.ImageTransformationOptions">
<property name="resizeOptions">
<bean class="org.alfresco.repo.content.transform.magick.ImageResizeOptions">
<property name="width" value="100"/>
<property name="height" value="100"/>
<property name="maintainAspectRatio" value="true"/>
<property name="resizeToThumbnail" value="true" />
</bean>
</property>
</bean>
</property>
<property name="placeHolderResourcePath" value="alfresco/thumbnail/thumbnail_placeholder_doclib.png" />
<property name="runAs" value="System"/>
</bean>
log4j.logger.org.alfresco.repo.content.transform=DEBUG
log4j.logger.org.alfresco.util.exec.RuntimeExec=DEBUG
log4j.logger.org.alfresco.repo.content.transform.ContentTransformerRegistry=DEBUG
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=false"
export DISPLAY=localhost:10.0
Archive content from product discussions in Italian.
This group is now closed and content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.