Serving Images with on-the-fly resize

前端 未结 8 596
生来不讨喜
生来不讨喜 2021-01-30 03:48

my company has recently started to get problems with the image handling for our websites.

We have several websites (adult entertainment) that display images like dvd cov

相关标签:
8条回答
  • 2021-01-30 04:11

    In the time that this question has been asked, a few companies have sprung up to deal with this exact issue. It is not an issue that's isolated to you or your company. Many companies reach the point where they need to look for a more permanent solution for their image processing needs.

    Services like imgix serve as a proxy and CDN for image operations like resizing and applying overlays. By manipulating the URL, you can apply different transformations to each image. imgix serves billions of requests per day.

    You can also stand up services on your own and put them behind a CDN. Open source projects like imageproxy are good for this. This puts the burden of maintenance on your operations team.

    (Disclaimer: I work for imgix.)

    0 讨论(0)
  • 2021-01-30 04:11

    This exact same problem is now being solved by image resize services dedicated to this task. They provide following features:

    1. In built CDN - you need not worry about image distribution
    2. Image resize on the fly - any size needed is available
    3. No storage needed - you just store base image and all variants are handled by service
    4. Ecosystem libraries - you can just include javascript and your job is done for all devices and all browsers.

    One such service is Gumlet. You can also try some open source alternative like nginx plugin which can also resize image on the fly.

    (I work for Gumlet.)

    0 讨论(0)
提交回复
热议问题