xiaoz
1.03D

分享下 Nginx + thumbor 组合,让 nginx 更好的支持图像裁剪

  •  1
     
  •   xiaoz · Sep 18, 2022 · 1361 views
    This topic created in 1366 days ago, the information mentioned may be changed or developed.

    Nginx 自身提供了一个模块--with-http_image_filter_module支持图像裁剪,如果只是单一 Nginx 节点使用,并没有什么问题。但如果是多个 nginx 都需要支持图像裁剪,那么不得不每个 nginx 节点在编译的时候都需要考虑启用--with-http_image_filter_module模块。该模块使用 GD 库进行裁剪,性能方面也不是很好。我们完全可以使用更高性能,且更灵活的 thumbor 图像裁剪从而来替代--with-http_image_filter_module

    大致流程是这样的:

    原文我就不全部复制了,有兴趣的可以参考我博客的实现: https://www.xiaoz.me/archives/17836

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5649 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 115ms · UTC 08:38 · PVG 16:38 · LAX 01:38 · JFK 04:38
    ♥ Do have faith in what you're doing.