geobtaa / geoportal

Big Ten Academic Alliance Geoportal
Other
10 stars 5 forks source link

Safari - Some thumbnails not rendering #569

Open ewlarson opened 5 months ago

ewlarson commented 5 months ago

https://geo.btaa.org/?f%5Bdct_isPartOf_sm%5D%5B%5D=12d-04&per_page=10

Safari

Screenshot 2024-01-12 at 10 15 21 AM

Chrome / Firefox

Screenshot 2024-01-12 at 10 16 09 AM

ewlarson commented 5 months ago

More info here. Appears Safari is rejecting the original image too: https://isac-idb-static.uchicago.edu/multimedia/3001247/1014604_APCS_Arabian_Sea_AP-20_3rd_Edition_1951_preview.1920x1200.jpg

That URL will display an image in Chrome, but in Safari it will be blank.

mberkowski commented 5 months ago

@ewlarson Safari rejects this image outright from its original URL, or is it rejected if called via XHR or dynamically loaded?

ewlarson commented 5 months ago

Rejecting is the wrong word here... I don't know quite how to phrase it. Safari is receiving (response) and loading (there are bytes here) a JPEG it just does not render — preview is just an empty/blank canvas.

Screenshot 2024-01-12 at 1 32 55 PM

ewlarson commented 5 months ago

Our thumbnail image in the Geoportal is really just a cropped variant of that original from U of Chicago... I don't know that there is anything here for us to resolve. We should pass this issue back to U of Chicago for their tech staff to troubleshoot.

ewlarson commented 5 months ago

One other thing! @njvack suggested if we run these JPEGs thru an image optimization tool (like Kraken), it might just fix them and that does indeed seem to fix the example from above.

Original (Does not load in Safari)

https://isac-idb-static.uchicago.edu/multimedia/3001247/1014604_APCS_Arabian_Sea_AP-20_3rd_Edition_1951_preview.1920x1200.jpg

1014604_APCS_Arabian_Sea_AP-20_3rd_Edition_1951_preview 1920x1200

Kraken'd (Does load in Safari)

https://dl.kraken.io/web/80de08dfcda5c0dd9a04278115f0e3ae/1014604_APCS_Arabian_Sea_AP-20_3rd_Edition_1951_preview.1920x1200.jpg

1014604_APCS_Arabian_Sea_AP-20_3rd_Edition_1951_preview 1920x1200 (1)

njvack commented 5 months ago

Yeah, jpeginfo suggests that the originals are Fancy Jpegs. It's super weird that Safari won't render them — they show up fine with quicklook and Preview and hey I would have expected those tools to use the same image libraries as Safari but ¯_(ツ)_/¯