-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure SMK images don't timeout on validation (#506)
* Rename Staten Museum to SMK * Request smaller images * Add support for legacy (non IIIF-enabled) images * Update and add new tests * Update provider name in DB
- Loading branch information
Showing
16 changed files
with
121 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...nmuseum/expected_image_data_complete.json → ...resources/smk/expected_image_data_hq.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/dags/providers/provider_api_scripts/resources/smk/expected_image_data_legacy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"height": 1059, | ||
"id": "1170012466_object", | ||
"image_url": "https://api.smk.dk/api/v1/thumbnail/52f00edc-936e-42a7-950b-d0cd0df3864b.jpg", | ||
"thumbnail": "https://api.smk.dk/api/v1/thumbnail/52f00edc-936e-42a7-950b-d0cd0df3864b.jpg", | ||
"width": 3887 | ||
}, | ||
{ | ||
"height": 1576, | ||
"id": "https://iip.smk.dk/iiif/jp2/KKSgb6458.tif.jp2", | ||
"image_url": "https://iip.smk.dk/iiif/jp2/KKSgb6458.tif.jp2/full/!2048,/0/default.jpg", | ||
"thumbnail": "https://iip.smk.dk/iiif/jp2/KKSgb6458.tif.jp2/full/!400,/0/default.jpg", | ||
"width": 4073 | ||
} | ||
] |
4 changes: 2 additions & 2 deletions
4
...enmuseum/expected_image_data_partial.json → ...rces/smk/expected_image_data_partial.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tests/dags/providers/provider_api_scripts/resources/smk/image_data_legacy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"alternative_images": [ | ||
{ | ||
"height": 1576, | ||
"iiif_id": "https://iip.smk.dk/iiif/jp2/KKSgb6458.tif.jp2", | ||
"iiif_info": "https://iip.smk.dk/iiif/jp2/KKSgb6458.tif.jp2/info.json", | ||
"mime_type": "image/tiff", | ||
"native": "https://iip.smk.dk/iiif/jp2/KKSgb6458.tif.jp2/full/full/0/native.jpg", | ||
"orientation": "landscape", | ||
"size": 19269857, | ||
"thumbnail": "https://iip-thumb.smk.dk/iiif/jp2/KKSgb6458.tif.jp2/full/!1024,/0/default.jpg", | ||
"width": 4073 | ||
} | ||
], | ||
"id": "1170012466_object", | ||
"image_height": 1059, | ||
"image_native": "https://api.smk.dk/api/v1/thumbnail/52f00edc-936e-42a7-950b-d0cd0df3864b.jpg", | ||
"image_size": 11784886, | ||
"image_thumbnail": "https://api.smk.dk/api/v1/thumbnail/52f00edc-936e-42a7-950b-d0cd0df3864b.jpg", | ||
"image_width": 3887 | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.