Preset and url combination
Hello,
I have a presete that has 3 eager image resize and it works fine. Besides that I want set some tags to my images. Is it possible to pass the a request that defines the preset and also some tags that take place after the preset? or can I pass to my preset the tags dynamically from the url?
Answers
-
Hi there,
Thanks for reaching out.
You can add tags to your images by specifying which tagging add-on you would like to use in your upload preset. This can be found in the
Media analysis and AI
tab of your upload preset. You will see a list of options, such as Amazon Rekognition Auto Tagging, Google Auto Tagging, and more. Be sure to set the auto-tagging confidence threshold as well. 0.9 would be a very high confidence that the tag is accurate. 0.2 would be pretty low confidence - so you might see some unexpected results the lower you go.Here is some documentation on managing your upload presets in the DAM:
https://cloudinary.com/documentation/dam_admin_upload_presets#media_analysis_and_aiI hope this helps. Please give it a shot and let me know how it goes. If you have any questions at all, do not hesitate to ask.
Kind regards,
Tia
Helpful Links For You
💬 Share questions, connect with other users in our Cloudinary Community forums and Discord server!
🧑🎓 Join our Cloudinary Academy for free courses, workshops and other educational resources.
📄 Read our documentation for in-depth details on Cloudinary product features and capabilities
📰 Check out the Cloudinary blog for the latest company news and insights0 -
Hello, thanks for the answer but this is not what I am looking for.
I don't want to auto tag the photos. I want to send them the tags I want on the request but I also want to run my preset eager tranformations.
Is this possible?
0 -
Hi there,
I would like to suggest 2 options to add tags:
- Through the upload preset: You can define tags in your upload preset in the Media analysis and AI . These tags will be applied to all images uploaded using this preset.
- You can add tags to your images dynamically after the upload is done by using Cloudinary’s API. You can use the
tags
parameter to add tags to an image. Here’s an example of how to add tags to an image using Cloudinary’s Node.js SDK:
cloudinary.v2.uploader.add_tag('tag1,tag2', 'public_id', function(error, result) { console.log(result); });
- In this example,
tag1
andtag2
are the tags you want to add, andpublic_id
is the ID of the image you want to tag. You can add multiple tags by separating them with commas. - For reference, please review the following documentation regarding this method: https://cloudinary.com/documentation/image_upload_api_reference#tags
I hope this helps! If you have any further questions or need assistance with anything else, please don’t hesitate to reach out.
Thanks,
Wissam
0