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.

  • ryan
    link
    fedilink
    111 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.