URL with appended "@convert?format=tiff" possible?

hi, If I want to download a pdf of an jpg file I can use a URL with “@convert?format=pdf” appended to it, e.g:

https://dms.nuxeo.local/nuxeo/api/v1/path/domain01/workspaces/workspace01/car.jpg/@convert?format=pdf

Nice feature!! If I want to download it as a tiff and replace “pdf” with either “tiff” or “tif” in the URL, I get:

“No converters available to convert from image/jpeg to image/tiff.”

Can someone point me in the direction of enabling jpg to tiff format conversion via the “@convert?format=” method?

thank Mark

0 votes

1 answers

958 views

ANSWER



Hello,

I would say there is not, by default, a converter from JPEG to TIFF. So my suggestion would be to create a custom converter in Nuxeo Studio (https://doc.nuxeo.com/nxdoc/how-to-contribute-a-command-line-converter/), then create an operation from it, and use then @op adapter, like /api/v1/id/{docId}/@op/{MySuperConverterFromJpegToTiff}

Regards

0 votes



Thanks Gregory!
08/17/2020