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)

Changes

Title unchanged

Image resize on the fly

Category unchanged

How-tos

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.**

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

Revisions

View all history