Is there a way to use convert CLI to set JFIF APP0 marker segment values? I want to set:
Density(BYTE[1]): 01 (inches)
Xdensity(BYTE[2]/SHORT): 600
Ydensity(BYTE[2]/SHORT): 600
I'd really like to do it as a batch to all *.jpg files in the directory. I've googled and searched the ImageMagick pages but I'll be hornswaggled if I can figure it out.
Me:
Windows 10 x64
ImageMagick-6.9.3-8-Q16-x64-dll.exe
Next will be the same thing to all the *.jpg files in the directory, but set a bunch of EXIF tags:
ResolutionUnit(SHORT): 2 (inches)
XResolution(RATIONAL): 600
YResolution(RATIONAL): 600
DateTimeOriginal(ASCII[20]): 1970-01-01 01:00:00
GPSLatitudeRef(ASCII[1]): N
GPSLatitude(RATIONAL[3]): [0]38 [1]39 [2]22.26081582
GPSLongitudeRef(ASCII[1]): W
GPSLongitude(RATIONAL[3]): [0]90 [1]27 [2]13.323671996
Setting JFIF APP0 marker segment values
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Setting JFIF APP0 marker segment values
"-density" and "-units" might set some of the values you want. But ImageMagick is essentially an image processor. It won't set GPS values.
I suggest you look at exiftool for setting metadata.
I suggest you look at exiftool for setting metadata.
snibgo's IM pages: im.snibgo.com