Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧹 Update IIIF Print and AV gems #2119

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

kirkkwang
Copy link
Collaborator

We were not seeing images loading correctly in the UV because we introduced the Hyku::WorksControllerBehavior and IIIF Print did not know about it.

We were seeing a respon to mismatch error in the Hyrax IIIF AV.

Also, the image that I tested was a phone image that apparently had different ExifImageHeight/ExifImageWidth values than the ImageHeight/ImageWidth values. This was probably because modern phones typically generate multiple images so the user can choose the best shot. The exiftool_image_to_fits.xslt was proritizing the Exif values over the regular values and would cause our image characterization to have weird height and width values. The change in this PR prioritizes the regular over the Exif values.

Ref:

We were not seeing images loading correctly in the UV because we
introduced the `Hyku::WorksControllerBehavior` and IIIF Print did not
know about it.
  - scientist-softserv/iiif_print@cad2cf3

We were seeing a respon to mismatch error in the Hyrax IIIF AV.
  - samvera-labs/hyrax-iiif_av@4723b8f

Also, the image that I tested was a phone image that apparently had
different ExifImageHeight/ExifImageWidth values than the
ImageHeight/ImageWidth values.  This was probably because modern phones
typically generate multiple images so the user can choose the best shot.
The exiftool_image_to_fits.xslt was proritizing the Exif values over the
regular values and would cause our image characterization to have weird
height and width values.  The change in this PR prioritizes the regular
over the Exif values.

Ref:
  - scientist-softserv/hykuup_knapsack#68
@kirkkwang kirkkwang added the patch-ver for release notes label Jan 2, 2024
</xsl:otherwise>
</xsl:choose>
</compressionScheme>
</xsl:if>
<imageWidth>
<xsl:choose>
<xsl:when test="exiftool/ExifImageWidth">
Copy link
Collaborator Author

@kirkkwang kirkkwang Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meaningful change starts here, everything else is removing spaces

</xsl:when>
<xsl:otherwise>
<xsl:value-of select="exiftool/ImageHeight[1]"/>
<xsl:value-of select="exiftool/ExifImageHeight[1]"/>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meaningful change ends here

@kirkkwang kirkkwang merged commit 84fbabf into hyrax-5-upgrade Jan 2, 2024
4 checks passed
@kirkkwang kirkkwang deleted the hyrax-5-upgrade-fix-images-in-uv branch January 2, 2024 20:18
@kirkkwang kirkkwang mentioned this pull request Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-ver for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants