-3

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.

you are viewing a single comment's thread
view the rest of the comments
[-] ryan@the.coolest.zone 1 points 10 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.

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

Programming Humor

2615 readers
1 users here now

Related Communities !programmerhumor@lemmy.ml !programmer_humor@programming.dev !programmerhumor@kbin.social !programming_horror@programming.dev

Other Programming Communities !programming@beehaw.org !programming@programming.dev !programming@lemmy.ml !programming@kbin.social !learn_programming@programming.dev !functional_programming@programming.dev !embedded_prog@lemmy.ml

founded 1 year ago
MODERATORS