Is it possible to create an image conversion via API?
Could you please tell me is it possible (and how) to add a new picture conversion to an existing picture document in Nuxeo Platform?
My use case is the following, I can upload a picture file to the platform and after some time I would like to upload via API a file containing the same picture, but in a different size or mime-type. In this case, Nuxeo should treat the uploaded file only as a conversion of the existing image and not a new asset.
I have gone through the documentation of Nuxeo but cannot seem to find the answer to my question.
Hello,
Here are several documentation link which will probably help you:
- Principals are detailed here: https://doc.nuxeo.com/nxdoc/how-to-contribute-a-command-line-converter/
- Another example: https://doc.nuxeo.com/nxdoc/how-to-contribute-picture-conversions/
As for the REST API calls for conversions, you need to use a web adapter: https://doc.nuxeo.com/nxdoc/rest-api-web-adapters/, so like http://NUXEO_SERVER/nuxeo/api/v1/id/{docId}/@convert?format=pdf
Regards
So, just to make sure, it is not possible just to upload a file from the file system and set it to be the rendition of the asset in Nuxeo? Does it always have to go through the conversion extension?