this post was submitted on 28 Dec 2023
-3 points (38.5% liked)

Programming Humor

2504 readers
2 users here now

Related Communities [email protected] [email protected] [email protected] [email protected]

Other Programming Communities [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]

founded 1 year ago
MODERATORS
 

Many thumbnail programs exist that will take a large image and reduce it to a thumbnail for you, often supporting working in batches. But what about turning user-uploaded images into thumbnails? Obviously, you don’t want to simply send a large image to the browser and have HTML resize it, because the quality wouldn’t be great, and your bandwidth would go through the roof. So you need something to handle this process on the fly, which is where this recipe comes in handy.

top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 7 months ago

If using Symfony, LiipImagineBundle can handle this.

Python's Pillow library might help here. Within node.js itself it looks like the sharp module could also suit your needs.