How to view and Edit Image meta tag using linux command line

How to view and Edit Image meta tag using linux command line

Image Meta tags are information contained in image files related to the type of camera, camera settings, keyword image, etc. To see the meta image tag

How to fix error 413 Request Entity Too Large
How to fix error Roundcube Connection to storage server failed
How to enable – disable php on Apache2 web server

Image Meta tags are information contained in image files related to the type of camera, camera settings, keyword image, etc. To see the meta image tag on linux, it’s not as simple as in windows just by right-clicking then selecting property. Linux requires a tool, and exiftool is one of this tool.

What is the Exiftool

ExifTool is a free and open-source software program for reading, writing, and manipulating image, audio, video, and PDF metadata. It is platform independent, available as both a Perl library and command-line. Any File formats that supported by exiftool can read in https://sno.phy.queensu.ca/~phil/exiftool/

1. How to install exiftool

To Install exiftool command line, you can type this command on your terminal:

sudo apt-get install exiftool

Result:

tanto@linux.tutorials:~$ sudo apt-get install exiftool
[sudo] password for tanto:              
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libimage-exiftool-perl' instead of 'exiftool'
The following NEW packages will be installed:
  libimage-exiftool-perl
0 upgraded, 1 newly installed, 0 to remove and 422 not upgraded.
Need to get 2.259 kB of archives.
After this operation, 12,7 MB of additional disk space will be used.
Get:1 http://id.archive.ubuntu.com/ubuntu xenial/universe amd64 libimage-exiftool-perl all 10.10-1 [2.259 kB]
Fetched 2.259 kB in 13s (171 kB/s)                                                                
Selecting previously unselected package libimage-exiftool-perl.
(Reading database ... 252499 files and directories currently installed.)
Preparing to unpack .../libimage-exiftool-perl_10.10-1_all.deb ...
Unpacking libimage-exiftool-perl (10.10-1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libimage-exiftool-perl (10.10-1) ...

2. How to view meta tag using exiftool

To view image meta tag using exiftool, jus type exiftool imagefilename like bellow:

tanto@ThinkPad-Edge-E445:~/Pictures$ exiftool tutorial-wordpress-belajar-wordpress.png
ExifTool Version Number         : 10.10
File Name                       : tutorial-wordpress-belajar-wordpress.png
Directory                       : .
File Size                       : 600 kB
File Modification Date/Time     : 2018:10:28 00:49:57+07:00
File Access Date/Time           : 2018:10:28 00:50:21+07:00
File Inode Change Date/Time     : 2018:10:28 00:49:57+07:00
File Permissions                : rw-rw-r--
File Type                       : PNG
File Type Extension             : png
MIME Type                       : image/png
Image Width                     : 800
Image Height                    : 600
Bit Depth                       : 8
Color Type                      : RGB with Alpha
Compression                     : Deflate/Inflate
Filter                          : Adaptive
Interlace                       : Noninterlaced
Background Color                : 255 255 255
Pixels Per Unit X               : 2835
Pixels Per Unit Y               : 2835
Pixel Units                     : meters
Modify Date                     : 2018:10:27 17:49:54
Comment                         : Created with GIMP
Image Size                      : 800x600
Megapixels                      : 0.480

3. How to edit Meta tag using exiftool

To add comment meta tag on image, just type:

exiftool -Comment="comment anda" namafile

example:

exiftool -Comment="Contoh cara mengganti Meta Tag" tutorial-wordpress-belajar-wordpress.png

Result:

tanto@ThinkPad-Edge-E445:~/Pictures$ exiftool tutorial-wordpress-belajar-wordpress.png
ExifTool Version Number         : 10.10
File Name                       : tutorial-wordpress-belajar-wordpress.png
Directory                       : .
File Size                       : 601 kB
File Modification Date/Time     : 2018:10:28 02:17:06+07:00
File Access Date/Time           : 2018:10:28 02:17:06+07:00
File Inode Change Date/Time     : 2018:10:28 02:17:06+07:00
File Permissions                : rw-rw-r--
File Type                       : PNG
File Type Extension             : png
MIME Type                       : image/png
Image Width                     : 800
Image Height                    : 600
Bit Depth                       : 8
Color Type                      : RGB with Alpha
Compression                     : Deflate/Inflate
Filter                          : Adaptive
Interlace                       : Noninterlaced
Background Color                : 255 255 255
Pixels Per Unit X               : 2835
Pixels Per Unit Y               : 2835
Pixel Units                     : meters
Modify Date                     : 2018:10:27 17:49:54
Comment                         : Contoh cara mengganti Meta Tag
Keywords                        : wordpress;tutorial;tutorial-wordpress
Application Record Version      : 4
Image Size                      : 800x600
Megapixels                      : 0.480
Loading...
loading...

COMMENTS

WORDPRESS: 0
DISQUS: 0
Rental Alphard Jakarta Sewa Alphard Jakarta Rental Alphard Jakarta Rental Alphard Jakarta Rental Alphard Jakarta Sewa Alphard Jakarta - Rental Fortuner Sewa Mobil Pengantin Jakarta Humayraa Resep123