Skip Navigation

Testing our brains. How would this node.js and python solution look to you?

chat-to.dev Chat Rooms and Programming Content | Chat-to.dev

Join chat rooms and explore programming content on Chat-to.dev.

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.

1
1 comments
  • 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.

    1