Welcome! Log In Create A New Profile

Advanced

Re: Resize & cache image from 3rd-party server?

September 22, 2009 12:30AM
On Mon, Sep 21, 2009 at 06:06:09PM -0400, digitala wrote:

> Is it possible to obtain an image from a remote http server, resize it locally, and cache it locally using just nginx? I understand this would be possible using the perl module (maybe forking perl so nginx doesn't block), but I'm assuming it would be faster for nginx to do it "natively".
>
> If the better route *is* perl, I'd still like to know if/how it could be done using just nginx - mainly as it will help my (and hopefully others) understanding of the nginx internals.

Currently nginx can get an image from a remote server, cache the original
image locally, then resize it. nginx can not cache the resized image at
the moment. However, you may set second nginx to cache it:

client -> nginx/cache -> nginx/resize/cache -> remote server


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Resize & cache image from 3rd-party server?

digitala September 21, 2009 06:06PM

Re: Resize & cache image from 3rd-party server?

Igor Sysoev September 22, 2009 12:30AM

Re: Resize & cache image from 3rd-party server?

hebrew878 January 11, 2015 11:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 283
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready