Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
In the 4.0 nightly community builds, extra transformation configuration was added (code from 4.0.1 and 3.4.8 service packs) to disable the creation of thumbnails in general and disable thumbnail creation for a given mimetype based on the size of the file. This mechanism is based on a customisation that has been applied on a number of customer sites. Unless you have no need for thumbnails at all or already have this customisation, it is probably better to use the approach describe in Content Transformation Limits.
All thumbnail generation may be turned off by setting an Alfresco Global Property.
system.thumbnail.generate=false
The thumbnail-service-context.xml file contains spring bean configuration that control the generation of thumbnails.
The 'create-thumbnail' and 'update-thumbnail' beans have a 'mimetypeMaxSourceSizeKBytes' property that may set maximum size limits (KB) for each source mimetype. If the value is less than zero, a thumbnail will be generated regardless of size. A value of 0 turns off thumbnail generation for a given mimetype. The following is the original configuration. Note the use of Alfresco global properties for values so that it is straight forward to change the configuration (all values have been defaulted to -1).
<util:map id='mimetypeMaxSourceSizeKBytes'
map-class='java.util.HashMap'
key-type='java.lang.String'
value-type='java.lang.String'>
<entry key='application/pdf' >
<value>${system.thumbnail.mimetype.maxSourceSizeKBytes.pdf}</value>
</entry>
<entry key='text/plain' >
<value>${system.thumbnail.mimetype.maxSourceSizeKBytes.txt}</value>
</entry>
<entry key='application/vnd.openxmlformats-officedocument.wordprocessingml.document' >
<value>${system.thumbnail.mimetype.maxSourceSizeKBytes.docx}</value>
</entry>
<entry key='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' >
<value>${system.thumbnail.mimetype.maxSourceSizeKBytes.xlsx}</value>
</entry>
<entry key='application/vnd.openxmlformats-officedocument.presentationml.presentation' >
<value>${system.thumbnail.mimetype.maxSourceSizeKBytes.pptx}</value>
</entry>
<entry key='application/vnd.oasis.opendocument.text' >
<value>${system.thumbnail.mimetype.maxSourceSizeKBytes.odt}</value>
</entry>
<entry key='application/vnd.oasis.opendocument.spreadsheet' >
<value>${system.thumbnail.mimetype.maxSourceSizeKBytes.ods}</value>
</entry>
<entry key='application/vnd.oasis.opendocument.presentation' >
<value>${system.thumbnail.mimetype.maxSourceSizeKBytes.odp}</value>
</entry>
</util:map>
mimetypeMaxSourceSizeKBytes bean configuration
system.thumbnail.mimetype.maxSourceSizeKBytes.pdf=-1
system.thumbnail.mimetype.maxSourceSizeKBytes.txt=-1
system.thumbnail.mimetype.maxSourceSizeKBytes.docx=-1
system.thumbnail.mimetype.maxSourceSizeKBytes.xlsx=-1
system.thumbnail.mimetype.maxSourceSizeKBytes.pptx=-1
system.thumbnail.mimetype.maxSourceSizeKBytes.odt=-1
system.thumbnail.mimetype.maxSourceSizeKBytes.ods=-1
system.thumbnail.mimetype.maxSourceSizeKBytes.odp=-1
Alfresco Global Properties
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
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.