Most CPU-efficient way to resize/compress image? #1480
Unanswered
jozseftuska
asked this question in
Help
Replies: 1 comment
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
We have images stored on blob storage. There are some clients that have slow internet connection so we want to compress images on the fly to create thumbnails. It is working fine quality and size-wise, 3MB files get compressed to 10-20Kb. The only problem is that it uses too much CPU resource and takes sometimes 1-3 seconds.
Our current code:
We could allow worse image quality and bigger size. I've also tried thumbnail but it was still slow.
Could you help how to optimize this code or an alternative approach resizing or even compressing? We would like to keep it under 500ms.
Thank you for your help in advance.
Beta Was this translation helpful? Give feedback.
All reactions