Difference between #1 and #2 of
Image resize on the fly

Revision #2 has been created by Tpoxa on Nov 11, 2012, 5:13:07 PM with the memo:

nginx feature
« previous (#1)


Title unchanged

Image resize on the fly

Category unchanged


Yii version unchanged

Tags unchanged

yii, image-resize

Content changed

What was it?

After first attempt to thumb
nail /resources/thumbs/images/photos/album1/gh53.jpg_200x300.jpg — thumb action will be triggered because file won’t found on disk.

Script will try to find location of the original source file here /resources/images/photos/album1/gh53.jpg
That is all.

**Comments are appreciated. Thanks.**

If you are using Nginx and you want to encrease speed of this script you could use  
header("X-Accel-Redirect: /resources/images****");
instead of refresh.
3 0
Viewed: 30 334 times
Version: 1.1
Category: How-tos
Written by: Tpoxa
Last updated by: Tpoxa
Created on: Nov 11, 2012
Last updated: 9 years ago
Update Article


View all history