cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change/add to the DAM image presets?

cmoad_
Champ on-the-rise
Champ on-the-rise

I am wanting to change the image size specs for Medium on a fresh installation of DAM. I am wondering generally how I can change the existing Medium and Thumbnail presents for DAM and possibly add new options.

1 ACCEPTED ANSWER

Thomas_Roger
Star Contributor
Star Contributor

Unfortunately, it's not yet possible in Nuxeo through contributions.

The easiest way to do that is to add one listener (synchronous or asynchronous, it depends on your needs) where you will do the image resizing based on the original image and override the existing Medium and Thumbnail views.

You can also generate new views in this listener for your custom sizes.

You can have a look at AbstractPictureAdapter#createPictureimpl to see how the resizing is done.

View answer in original post

1 REPLY 1

Thomas_Roger
Star Contributor
Star Contributor

Unfortunately, it's not yet possible in Nuxeo through contributions.

The easiest way to do that is to add one listener (synchronous or asynchronous, it depends on your needs) where you will do the image resizing based on the original image and override the existing Medium and Thumbnail views.

You can also generate new views in this listener for your custom sizes.

You can have a look at AbstractPictureAdapter#createPictureimpl to see how the resizing is done.