cancel
Showing results for 
Search instead for 
Did you mean: 
resplin
Elite Collaborator
Elite Collaborator

Obsolete Pages{{Obsolete}}

The official documentation is at: http://docs.alfresco.com




Links


Content Transformation Limits


Introduction


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.


Turning off all Thumbnail Generation


All thumbnail generation may be turned off by setting an Alfresco Global Property.



system.thumbnail.generate=false

Turning off selected mimetype Thumbnail Generation


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

Content Transformation
3.4
4.0