Skip to content

fix(web): high resolution image on zoom - #9818

Merged
jrasm91 merged 2 commits into
mainfrom
fix/web-high-resolution-image-on-zoom
May 28, 2024
Merged

jrasm91 merged 2 commits into
mainfrom
fix/web-high-resolution-image-on-zoom

Conversation

@michelheusschen

Copy link
Copy Markdown
Collaborator

#9684 added support for replacing assets but also made several changes to PhotoViewer, which causes high resolution images to no longer load when zooming in.

Resolved by reverting these changes, but added reloading when the checksum changes. Unit tests are added to cover this functionality.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 28, 2024 •

Copy link
Copy Markdown

Deploying immich with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0b726b7
Status: ✅  Deploy successful!
Preview URL: https://5c78008c.immich.pages.dev
Branch Preview URL: https://fix-web-high-resolution-imag.immich.pages.dev

View logs

@alextran1502

Copy link
Copy Markdown
Member

@midzelis FYI

@jrasm91
jrasm91 merged commit e459d52 into main May 28, 2024
@jrasm91
jrasm91 deleted the fix/web-high-resolution-image-on-zoom branch May 28, 2024 11:15
@midzelis

Copy link
Copy Markdown
Collaborator

I'll fix high resolution image using the non-blob URLs change in the earlier PR. Sorry about that.

I think there is merit/value in not using blob URLs for the images. You get a lot of browser-native caching behavior if you use ordinary URLs. You also get the ability to copy an images URL. Unverified - but I bet it also uses less memory, since the browser doesn't need to copy the image from the cache to a byte blob.

Also, the original code is massively overcomplicated for what it does. Stay tuned for a fix in a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants