Skip to content

ETT-1453: Fix export of certain images#203

Merged
aelkiss merged 1 commit intomainfrom
ETT-1453-grokj2k-args
Apr 17, 2026
Merged

ETT-1453: Fix export of certain images#203
aelkiss merged 1 commit intomainfrom
ETT-1453-grokj2k-args

Conversation

@aelkiss
Copy link
Copy Markdown
Member

@aelkiss aelkiss commented Apr 16, 2026

grk_compress expected -S and -E instead of -SOP and -EPH

see hathitrust/feed@c4099fe

I'm not sure how or why the export format gets set to image/jp2 when generating PDFs (or rather how to replicate it in a test) and why it only happens for certain source images (it doesn't seem to be all JPEG2000 images, or presumably we'd hear about download being completely broken), but this seems to be the cause of the problem we're having with certain downloads.

grk_compress expected -S and -E instead of -SOP and -EPH
see hathitrust/feed@c4099fe
@aelkiss aelkiss requested a review from moseshll April 16, 2026 21:11
@aelkiss
Copy link
Copy Markdown
Member Author

aelkiss commented Apr 16, 2026

FYI @carylwyatt if you want to try this branch in dev to see if it fixes the issues you were running into. You may need to clear out cache/download first.

@carylwyatt
Copy link
Copy Markdown
Member

@aelkiss I tested this branch on dev-3 and PDFs that previously failed are now downloading without issue. Hooray!

Copy link
Copy Markdown
Contributor

@moseshll moseshll left a comment

Choose a reason for hiding this comment

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

I'm also perplexed as to why all jp2s don't fail miserably, but that's for another day. Checks out on dev-2. APPROVE

@aelkiss aelkiss merged commit d4f5d70 into main Apr 17, 2026
3 of 4 checks passed
@aelkiss aelkiss deleted the ETT-1453-grokj2k-args branch April 17, 2026 14:52
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.

3 participants