{"id":5163,"date":"2024-10-11T17:27:19","date_gmt":"2024-10-11T10:27:19","guid":{"rendered":"https:\/\/dev.artru.net\/?p=5163"},"modified":"2024-10-12T13:12:28","modified_gmt":"2024-10-12T06:12:28","slug":"exiftool-tao-metadata-hinh-anh-hang-loat","status":"publish","type":"post","link":"https:\/\/artru.net\/en\/exiftool-tao-metadata-hinh-anh-hang-loat\/","title":{"rendered":"ExifTool - Generate Batch Image Metadata"},"content":{"rendered":"<p><a href=\"https:\/\/exiftool.org\/\" target=\"_blank\" rel=\"noreferrer noopener\" data-schema-attribute=\"about\">ExifTool<\/a> is a powerful and flexible tool that makes it easy to read, write and edit <strong>Metadata<\/strong> belong to <strong>image<\/strong> and many other file types. Developed by Phil Harvey, ExifTool supports many metadata formats such as EXIF, GPS, IPTC, XMP,...<\/p>\n\n\n\n<p>In this article, I will guide you how to use ExifTool to create <strong>Image metadata<\/strong> mass<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why use ExifTool?<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Multi-purpose<\/strong>: Supports various Metadata formats.<\/li>\n\n\n\n<li><strong>Strong<\/strong>: Can process batch files quickly and efficiently.<\/li>\n\n\n\n<li><strong>Supports multiple operating systems<\/strong>: Windows, MacOS, Linux, Android, Multi-Platform,...<\/li>\n\n\n\n<li><strong>Free and open source<\/strong>: Easy to access and use at no cost.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Install ExifTool<\/h2>\n\n\n\n<p>To get started, you need to install ExifTool on your device.<\/p>\n\n\n\n<p>You can download it from ExifTool official website: <a href=\"https:\/\/exiftool.org\/\" target=\"_blank\" rel=\"noreferrer noopener\" data-schema-attribute=\"about\">ExifTool.org<\/a> or GUI version (with interface) <a href=\"https:\/\/exiftool.org\/gui\/\" target=\"_blank\" rel=\"noreferrer noopener\" data-schema-attribute=\"about\">ExifTool.org\/gui<\/a>.<\/p>\n\n\n\n<p>Or use the version <a href=\"https:\/\/portableapps.com\/apps\/graphics_pictures\/exiftoolgui-portable\" target=\"_blank\" rel=\"noreferrer noopener\" data-schema-attribute=\"about\">ExifToolGUI Portable<\/a> on Portable Apps store<\/p>\n\n\n\n<p>Once downloaded, follow the instructions to complete the installation process.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using ExifTool to generate image metadata in batches<\/h2>\n\n\n\n<p>In this tutorial, I use version <a href=\"https:\/\/portableapps.com\/apps\/graphics_pictures\/exiftoolgui-portable\" target=\"_blank\" rel=\"noreferrer noopener\" data-schema-attribute=\"about\">ExifToolGUI Portable<\/a> on Windows. You can set up similarly for other operating systems.<\/p>\n\n\n\n<p>The first step is to put all the images that need to generate Metadata into a single folder. If you are using WordPress, you can download the folder <code data-no-translation=\"\" data-no-auto-translation=\"\">\/wp-content\/uploads\/<\/code> to create Metadata in bulk on the computer, then upload it back to the hosting.<\/p>\n\n\n\n<p>In this example I use the directory <code data-no-translation=\"\" data-no-auto-translation=\"\">ico<\/code> set out <code data-no-translation=\"\" data-no-auto-translation=\"\">Desktop<\/code> Please.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"158\" height=\"511\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2024\/10\/Thu-muc-ico-dat-ngoai-Desktop.png\" alt=\"ico folder placed on Desktop\" class=\"wp-image-5219\"\/><figcaption class=\"wp-element-caption\">ico folder placed on Desktop<\/figcaption><\/figure>\n<\/div>\n\n\n<p>When you open ExifTool you will see the old Metadata data.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1278\" height=\"982\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2024\/10\/Metadata-hinh-anh-trong-ExifToolGUI.png\" alt=\"Image metadata in ExifToolGUI\" class=\"wp-image-5217\"\/><figcaption class=\"wp-element-caption\">Image metadata in ExifToolGUI<\/figcaption><\/figure>\n<\/div>\n\n\n<p><strong>Step 1:<\/strong> Click the button <code data-no-translation=\"\" data-no-auto-translation=\"\">ExifTool direct<\/code> on the bottom toolbar.<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Customize the code below to match your information and paste it into the box. <code data-no-translation=\"\" data-no-auto-translation=\"\">Command<\/code>. Then press <code data-no-translation=\"\" data-no-auto-translation=\"\">Enter<\/code> to perform mass Metadata changes for the selected folder.<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code data-no-translation=\"\" data-no-auto-translation=\"\">-r -all:all -XMP-dc:Rights=\"ARTRU\" -IPTC:CopyrightNotice=\"ARTRU\" -XMP-dc:Creator=\"ARTRU\" -IPTC:By-line=\"ARTRU\" -XMP-photoshop:Credit=\"ARTRU\" -IPTC:Credit=\"ARTRU\" -XMP-iptcExt:DigitalSourceType=\"Original media with minor human edits\" -XMP-plus:LicensorURL=\"https:\/\/artru.net\" -XMP-xmpRights:WebStatement=\"https:\/\/artru.net\"<\/code><\/pre>\n\n\n\n<p>Explanation of the above code:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">-r<\/code> This stands for <code data-no-translation=\"\" data-no-auto-translation=\"\">\"recursive\"<\/code>. This option allows ExifTool to process all files in the specified directory including its subdirectories.<\/li>\n\n\n\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">-all:all<\/code> This option is to clear all old Metadata before adding new Metadata. Because sometimes images use unique Metadata that is not always necessary for <strong>SEO<\/strong>, so the best way is to delete it completely.<\/li>\n\n\n\n<li><code data-no-translation=\"\" data-no-auto-translation=\"\">-XMP-dc:Rights=\"ARTRU\" -IPTC:CopyrightNotice=\"ARTRU\" -XMP-dc:Creator=\"ARTRU\" -IPTC:By-line=\"ARTRU\" -XMP-photoshop:Credit=\"ARTRU\" -IPTC:Credit=\"ARTRU\" -XMP-iptcExt:DigitalSourceType=\"Original media with minor human edits\" -XMP-plus:LicensorURL=\"https:\/\/artru.net\" -XMP-xmpRights:WebStatement=\"https:\/\/artru.net\"<\/code> This line is the Metadata added to the file, please change it to your own information.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1278\" height=\"982\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2024\/10\/Dien-code-Command-vao-ExifTool-direct-trong-ExifToolGUI.png\" alt=\"Enter Command code into ExifTool directly in ExifToolGUI\" class=\"wp-image-5214\"\/><figcaption class=\"wp-element-caption\">Enter Command code into ExifTool directly in ExifToolGUI<\/figcaption><\/figure>\n<\/div>\n\n\n<p>The Metadata for the above images I refer to from the <a href=\"https:\/\/developers.google.com\/search\/docs\/appearance\/structured-data\/image-license-metadata#structured-data-type-definitions\" target=\"_blank\" rel=\"noreferrer noopener\">Google Images SEO<\/a>. You can completely customize the above code as you wish.<\/p>\n\n\n\n<p>After clicking <code data-no-translation=\"\" data-no-auto-translation=\"\">enter<\/code> then this ExifTool LOG table will appear. You notice that the right column has changed Metadata.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1278\" height=\"982\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2024\/10\/ExifTool-LOG-trong-ExifToolGUI.png\" alt=\"ExifTool LOG in ExifToolGUI\" class=\"wp-image-5215\"\/><figcaption class=\"wp-element-caption\">ExifTool LOG in ExifToolGUI<\/figcaption><\/figure>\n<\/div>\n\n\n<p>The result after adding Metadata is that Google Image Search will display Metada information here.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"897\" src=\"https:\/\/cdn.artru.eu.org\/wp-content\/uploads\/2024\/10\/Metadata-hinh-anh-trong-Google-Search-Image.png\" alt=\"Image Metadata in Google Search Image\" class=\"wp-image-5218\"\/><figcaption class=\"wp-element-caption\">Image Metadata in Google Search Image<\/figcaption><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>ExifTool l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5 m\u1ea1nh m\u1ebd v\u00e0 linh ho\u1ea1t, gi\u00fap b\u1ea1n d\u1ec5 d\u00e0ng \u0111\u1ecdc, vi\u1ebft v\u00e0 ch\u1ec9nh s\u1eeda Metadata c\u1ee7a h\u00ecnh \u1ea3nh v\u00e0 nhi\u1ec1u lo\u1ea1i t\u1ec7p kh\u00e1c. \u0110\u01b0\u1ee3c ph\u00e1t [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5216,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-5163","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-seo"],"_links":{"self":[{"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/posts\/5163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/comments?post=5163"}],"version-history":[{"count":0,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/posts\/5163\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/media\/5216"}],"wp:attachment":[{"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/media?parent=5163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/categories?post=5163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artru.net\/en\/wp-json\/wp\/v2\/tags?post=5163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}