Skip to content

Use exiftool/ImageSize for determining image width and height - #408

Draft
cjcolvar wants to merge 1 commit into
fitstool:mainfrom
cjcolvar:main
Draft

Use exiftool/ImageSize for determining image width and height#408
cjcolvar wants to merge 1 commit into
fitstool:mainfrom
cjcolvar:main

Conversation

@cjcolvar

Copy link
Copy Markdown

What does this Pull Request do?

Pyramidal tiffs will report multiple values for exiftool/ImageWidth and exiftool/ImageHeight since FITS calls exiftool with the -a option and they have multiple image layers contained within the file. For some files the last reported values could be a layer with different dimensions than the original image which leads to CONFLICT statuses with jhove. exiftool/ImageSize only appears once in the exiftool output and its value matches the output from jhove.

Test coverage

This PR includes a test file and expected FITS XML output file with integration tests.

Pyramidal tiffs will report multiple values for exiftool/ImageWidth and exiftool/ImageHeight since FITS calls exiftool with the `-a` option and they have multiple image layers contained within the file.  For some files the last reported values could be a layer with different dimensions than the original image which leads to CONFLICT statuses with jhove.  exiftool/ImageSize only appears once in the exiftool output and its value matches the output from jhove.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant