Skip to content

dags: Resize images that are too large for Bedrock#53

Merged
awilfox merged 1 commit intomainfrom
awilfox/AP-672-resize-images
Apr 23, 2026
Merged

dags: Resize images that are too large for Bedrock#53
awilfox merged 1 commit intomainfrom
awilfox/AP-672-resize-images

Conversation

@awilfox
Copy link
Copy Markdown
Member

@awilfox awilfox commented Apr 23, 2026

  • Add piffle dep for IIIF metadata processing.

  • Add variable TIND_IIIF_MANIFEST_URL_PATTERN to define where the IIIF manifests live for the given TIND API.

  • Add helper code to the FetchTind class to fetch the image. This will likely be refactored to the TIND Client package later.

  • Add logic for determining the correct size.

Implements: AP-672


If I had to do it over again, I'd make a helper class for all the faffing about, but that can be another fast-follow refactor.

@awilfox awilfox self-assigned this Apr 23, 2026
@awilfox awilfox force-pushed the awilfox/AP-672-resize-images branch from 489f0f7 to 7fa27f1 Compare April 23, 2026 10:12
@awilfox
Copy link
Copy Markdown
Member Author

awilfox commented Apr 23, 2026

v2:

  • Rebased on main.

CI failure was due to Playwright OOM.

Comment thread mokelumne/dags/fetch_images.py Outdated
Comment thread mokelumne/util/fetch_tind.py Outdated
Comment thread mokelumne/util/fetch_tind.py Outdated
Copy link
Copy Markdown
Contributor

@jason-raitz jason-raitz left a comment

Choose a reason for hiding this comment

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

r+; Great Job! :shipit:
comments and suggestions are non-blocking and probably not necessary

Copy link
Copy Markdown
Member

@anarchivist anarchivist left a comment

Choose a reason for hiding this comment

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

r+. i think there's some clean up on this, but i don't think it's blocking for the demo.

Comment thread mokelumne/util/fetch_tind.py
Comment thread mokelumne/util/fetch_tind.py Outdated
Comment thread mokelumne/util/fetch_tind.py Outdated
Comment thread mokelumne/dags/fetch_images.py
* Add `piffle` dep for IIIF metadata processing.

* Add variable `TIND_IIIF_MANIFEST_URL_PATTERN` to define where the IIIF
  manifests live for the given TIND API.

* Add helper code to the FetchTind class to fetch the image.  This will
  likely be refactored to the TIND Client package later.

* Add logic for determining the correct size.

Implements: AP-672
@awilfox awilfox force-pushed the awilfox/AP-672-resize-images branch from 7fa27f1 to 1f91308 Compare April 23, 2026 16:08
@awilfox awilfox merged commit 1f91308 into main Apr 23, 2026
8 of 9 checks passed
@awilfox awilfox deleted the awilfox/AP-672-resize-images branch April 23, 2026 16:14
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