Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-01 15:46:39

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

resize article image and create 2 thumbnail

sorry for the title but its hard to title this!

so here we go!
I’m searching for a way to create 2 thumbnails for one article image,
I made a search and found many topics about that, but with no luck for a solution

1. I got the original image lets say 500×400
2. I create a thumbnail of 300×200 for the article
3. I want to create another thumbnail of 60×60 for my articles list

so i found this plugin “lam_dynamic_image”

but in the note of it says:
“This plugin will only resize proportionally.
While you can specify something like
<txp:article_image width="450" height="450" />
it will not return an article image with dimensions 450 × 450.”

so unfortunately that not good for me,
it will create something like 60×40 or whatever,
and i need 60×60
any help please?

if there is a way to put some php/js inline code into the form that will resize the image, it will be great!
(not using css style=“width:60px; height:60px”)
and I don’t need a preview of the thumbnail!
just something that will do the job please.

thanks!
:)

Offline

#2 2008-05-26 14:39:40

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: resize article image and create 2 thumbnail

From the lam_dynamic_image page at TXP resources

hint: you can still use thumbnail attribute – specify 0 or 1. This will output the regular sized thumbnail for the image created by Textpattern.

I hope this helps.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB