Problem converting PNG to JPG via REST

Hi,

I'm trying to convert a PNG image to JPG via the REST API and the Blob.Convert extension point on a 5.8 instance running locally with DAM installed. The curl command is:

curl -u Administrator:Administrator -H 'Content-Type: application/json+nxrequest' -X POST http://localhost:8080/nuxeo/api/v1/id/bef0ca7b-79e5-4d38-8a3f-df01bee0db6d/@blob/file:content/@op/Blob.Convert -d '{"params":{"mimeType":"image/jpeg"},"context":{}}' > file.jpg

where the UUID is to a Picture extended document containing a PNG file.

The curl command returns 200 OK but the file produced is identical to the uploaded file – it's format was not changed.

Thanks in advance.

0 votes

0 answers

2562 views

ANSWER