Last updated: Aug-18-2025
OverviewWatch this tutorial learn how to use the CLI to create an upload preset to transform your images upon upload.
Video tutorialThis video is brought to you by Cloudinary's video player - embed your own!
Tutorial contentsThis tutorial presents the following topics. Click a timestamp to jump to that part of the video.
Remove the image backgrounds during upload to Cloudinary   0:05 Using an upload preset, you can transform your images during upload to Cloudinary. Create an upload preset with the CLI to remove background images   0:13 Use thecreate_upload_preset
command to create an upload preset that invokes Cloudinary AI background removal (background_removal=cloudinary_ai
).
use_filename=true unique_filename=false
) and ensures an existing file with the same public ID isn't overwritten (overwrite=false
).
cld admin create_upload_preset name=remove_background overwrite=false use_filename=true unique_filename=false type=upload access_mode=public background_removal=cloudinary_ai
access_mode
is supported for backward compatibility. Use
access_control
instead.
Upload the images to Cloudinary   0:41 Use theupload_dir
command to upload the images with the newly created upload preset.
cld upload_dir -f new_toys -p remove_background soft_toys
View the new folder in the Media Library   0:52 The new folder contains the uploaded images without backgrounds. Keep learning If you like this, you might also like...
Â
Â
Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.
Â
âï¸ Feedback sent!
âï¸Â  ErrorUnfortunately there's been an error sending your feedback.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4