Image Tagging and searching

Image tagging is a good practice to sort and search images, as tags are additional attributes that can be attached to an image file.

For example: If you have a picture of a man wearing a t-shirt on your website, then you might want some additional attributes attached to the image, other than it's metadata, like:

  1. Colour: Black

  2. Collar: Round Neck

  3. Sleeve: Short Sleeve

  4. Material: Cotton

  5. Print: Solid

This information might not be possibly reflected in the image name, and neither is it easy to organize the resources based on these attributes. Image Tags help with such day-to-day problems.

Add image tags

You can either add image tags while uploading the image or you can add tags from the ImageKit.io Media Library.

To add a tag to an image, right-click on the file to open the menu. Click on the "Tags" menu item. This will open a popup, enter the tags you want, and press the "Save" button.

Add Tag

Add/remove tags in bulk

You can select multiple files together by pressing and holding the Command key in Mac or the Ctrl key in Windows. Right-click on any file to open menu options. Select "Add Bulk Tags" or "Remove Bulk Tags" option. This will open a popup, enter the tag values, and press the "Save" button.

Bulk Tag Add or Remove

Search with image tags

Click on the advanced icon right next to the text input field, enter the tag name(s), and click the"Search" button. All images associated with the tag will be shown in the search results. You can also use the search API.

Search files by tag

Update Image Tags

You can update the image tags from the media library or using the file update API as well.

To update a tag to an image in the media library, right-click on the file to open the menu. Click on the "Tags" menu item. This will open a popup, enter the tags you want, and press the "Save" button.

If you have any questions regarding Image Tagging or any feedback regarding this feature, please get in touch with our team at support@imagekit.io