I'm uploading via the browser using a form and the REST API (as detailed here https://cloudinary.com/documentation/upload_images#manual_signature_generation)
I would like to perform an eager transformation based on the image type - if the file being uploaded is a PDF then convert the first page to a png:
I think I need to do something like:
formData.append("eager", "if_ctx:!<what do I use here>!_eq_!pdf!/f_png/if_end");
But I can't find a conditional image characteristic that uses the image format.
Is this possible and if so what should I use in my eager transformation paramater?
Please sign in to leave a comment.