Tiff tags are missing in newest version

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
sky_1
Posts: 4
Joined: 2019-06-15T10:54:09-07:00
Authentication code: 1152

Tiff tags are missing in newest version

Post by sky_1 »

I installed the newest version ImageMagick 6.7.2-7
run this command

Code: Select all

convert -size 1209x500 -pointsize 60 -gravity Center -compress Group4 -type bilevel -monochrome caption:'Hi'\n 1.tif
I found the following tags are missing in this new version. The older version 6.7.2-7 has all this information. Is there any way I can have these tags back in new version?

Code: Select all

	- Document Name 
	- Xresolution
	- Yresolution
	- ResolutionUnit
        - X Position 
        - Y Position 

Code: Select all

%exiftool 1.tif
ExifTool Version Number         : 11.01
File Name                       : 1.tif
Directory                       : .
File Size                       : 330 bytes
File Modification Date/Time     : 2019:06:19 18:11:12-04:00
File Access Date/Time           : 2019:06:19 18:11:12-04:00
File Inode Change Date/Time     : 2019:06:19 18:11:12-04:00
File Permissions                : rw-r--r--
File Type                       : TIFF
File Type Extension             : tif
MIME Type                       : image/tiff
Exif Byte Order                 : Little-endian (Intel, II)
Image Width                     : 1209
Image Height                    : 500
Bits Per Sample                 : 1
Compression                     : T6/Group 4 Fax
Photometric Interpretation      : WhiteIsZero
Fill Order                      : Normal
Strip Offsets                   : 8
Orientation                     : Horizontal (normal)
Samples Per Pixel               : 1
Rows Per Strip                  : 500
Strip Byte Counts               : 160
Planar Configuration            : Chunky
Page Number                     : 0 1
Image Size                      : 1209x500
Megapixels                      : 0.605
In older version 6.7.2-7

Code: Select all

ExifTool Version Number         : 10.55
File Name                       : 1.tif
Directory                       : .
File Size                       : 418 bytes
File Modification Date/Time     : 2019:06:19 18:13:25-04:00
File Access Date/Time           : 2019:06:19 18:13:25-04:00
File Inode Change Date/Time     : 2019:06:19 18:13:25-04:00
File Permissions                : rw-rw----
File Type                       : TIFF
File Type Extension             : tif
MIME Type                       : image/tiff
Exif Byte Order                 : Little-endian (Intel, II)
Image Width                     : 1209
Image Height                    : 500
Bits Per Sample                 : 1
Compression                     : T6/Group 4 Fax
Photometric Interpretation      : WhiteIsZero
Fill Order                      : Normal
Document Name                   : 1.tif
Strip Offsets                   : 8
Orientation                     : Horizontal (normal)
Samples Per Pixel               : 1
Rows Per Strip                  : 500
Strip Byte Counts               : 138
X Resolution                    : 72
Y Resolution                    : 72
Planar Configuration            : Chunky
X Position                      : 0.04166666791
Y Position                      : 0
Resolution Unit                 : None
Page Number                     : 0 1
Image Size                      : 1209x500

Thank you!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Tiff tags are missing in newest version

Post by fmw42 »

IM 6.7.2.7 is ancient by version number. What is your platform? If Linux, then what is the patch date on the version. Did you install from source or from binary? Was it from the Linux distribution? What is the version of libtiff? Is it current?

You can get most of that from % escapes. See https://imagemagick.org/script/escape.php

What is X position and Y position? Do you mean page X offset and page Y offset?

Exiftool is different from ImageMagick. So showing us those results does not help much. What do you get from

Code: Select all

identify -verbose 1.tif
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Tiff tags are missing in newest version

Post by magick »

Add -density 300x300 to your command-line, for example, to export the image resolution.
sky_1
Posts: 4
Joined: 2019-06-15T10:54:09-07:00
Authentication code: 1152

Re: Tiff tags are missing in newest version

Post by sky_1 »

Thank you! After adding -density 300x300, it worked.

Looks like in the newer version, some tags need to be added explicitly.
Post Reply