How can I change/add to the DAM image presets?
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.
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
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.