Bug #1371
Unable to set Exif.Image.XResolution for Tiff Files
Start date:
05 Oct 2018
Due date:
% Done:
10%
Estimated time:
3.00 h
Description
See https://github.com/Exiv2/exiv2/issues/463
This works for JPG:
552 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2 $ curl -O --silent http://clanmills.com/Stonehenge.jpg 553 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2 $ exiv2 -pa --grep XResolution Stonehenge.jpg Exif.Image.XResolution Rational 1 300 Exif.Thumbnail.XResolution Rational 1 300 554 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2 $ exiv2 -M'set Exif.Image.XResolution Long 500' Stonehenge.jpg 555 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2 $ exiv2 -pa --grep XResolution Stonehenge.jpg Exif.Image.XResolution Long 1 500 Exif.Thumbnail.XResolution Rational 1 300 556 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2 $
Not working for tiff:
556 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2 $ cp test/data/Reagan.tiff . 557 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2 $ exiv2 -pa --grep XResolution Reagan.tiff Exif.Image.XResolution Rational 1 300 558 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2 $ exiv2 -M'set Exif.Image.XResolution Long 500' Reagan.tiff 559 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2 $ exiv2 -pa --grep XResolution Reagan.tiff Exif.Image.XResolution Rational 1 300 560 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2 $
Comment off Exif.Image.XResolution in src/tiffimage_int.cpp #1831
579 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ cp ../test/data/Reagan.tiff . 580 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ bin/exiv2 -pa --grep XResolution Reagan.tiff Exif.Image.XResolution Rational 1 300 581 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ bin/exiv2 -M'set Exif.Image.XResolution Long 500' Reagan.tiff 582 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ bin/exiv2 -pa --grep XResolution Reagan.tiff Exif.Image.XResolution Long 1 500 583 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $ del ../Reagan.tiff 584 rmills@rmillsmbp:~/gnu/github/exiv2/exiv2/build $