Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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&quality=95&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
Pages: 1