Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mobile out of memory optimisation for decoding large images #480

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kunjesh1
Copy link

@kunjesh1 kunjesh1 commented Nov 7, 2022

We have found that resizing large images solves most of the out-of-the-memory issues. We did two things:

  1. In loading Jpeg baseline color images, canvas is used to resize the image if it's > 1000 pixels
  2. For other loaders, we used nearest neighbour interpolation to resize the image after loading.

@netlify
Copy link

netlify bot commented Nov 7, 2022

Deploy Preview for cornerstone-wado-image-loader failed.

Name Link
🔨 Latest commit 2fac84b
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-wado-image-loader/deploys/63696d865c386c000836ea2d

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.

1 participant