Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-02-22 12:10:21

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Create more images than a thumbnail

Hi,

Just wondered if there was a way to automatically generate a small and medium copy of an uploaded image as well as the thumbnail?
I’d want them to be the same size every upload.

Thanks
Geoff

Last edited by geoff777 (2010-02-22 12:10:54)


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#2 2010-02-22 13:16:27

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: Create more images than a thumbnail

Use Smart Image Resizer along with upm_image.

In the base site folder on your FTP server (one level up from the textpattern directory), copy the the image.php file and make a directory called “imagecache”, that is writable (chmod to 775). Works like a charm.

I use the following markup:

<img src="/image.php?width=220&amp;quality=95&amp;image=<txp:upm_img_full_url />" alt="<txp:upm_img_alt />" />

You can use that in conjunction with upm_image or upm_article_image tags.

You can check the support docs from Smart Image Resizer to make it do whatever you want. I found the image quality to be excellent, and better than that provided by lam_dynamic_image, which is another option.

Last edited by aswihart (2010-02-22 13:22:22)

Offline

Board footer

Powered by FluxBB