cancel
Showing results for 
Search instead for 
Did you mean: 

Overriding default picture conversions in Nuxeo

Ravindra_Nalavd
Champ on-the-rise
Champ on-the-rise

I am trying to override the picture conversion.

By default, Nuxeo provides following OOTB converters

  • Thumbnail
  • Small
  • Medium
  • Large
  • Orignal

I want to reduce the converters to

  • Thumbnail
  • Orignal

Following are the configurations that I have tried

  1. Created a Multi-Module Contribution

target org.nuxeo.ecm.platform.picture.ImagingComponent 2. Added following extension to the OSGI-INF/picture-conversion-core-contrib.xml file Ref

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.picture.ImagingComponent.default.config.override">
<require>
    org.nuxeo.ecm.platform.picture.ImagingComponent.default.config
</require>
    <extension target="org.nuxeo.ecm.platform.picture.ImagingComponent" point="pictureConversions">
        <pictureConversion chainId="Image.Blob.Resize" description="Thumbnail size" id="Thumbnail" maxSize="100" order="0" rendition="true"/>
        <pictureConversion chainId="Image.Blob.Resize" description="Original jpeg image" id="OriginalJpeg" order="100" rendition="true"/>
    </extension>
</component>

Even though the component is installed correctly on the Nuxeo server, the server is converting the images with default formats(ie. Thumbnail, Small, Medium, Large and Original).

What are the steps to override a default contribution in Nuxeo without Nuxeo studio?

1 ACCEPTED ANSWER

LaraGranite_
Star Contributor
Star Contributor

Try disabling the default conversions. For example

<pictureConversion id="Large" enabled="false" />

View answer in original post

1 REPLY 1

LaraGranite_
Star Contributor
Star Contributor

Try disabling the default conversions. For example

<pictureConversion id="Large" enabled="false" />