Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-12 18:43:28

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Multiple thumbnails (different sizes)

Is three a way to upload my original image 2000×2000 and have two thumbnails?

One that I use in the article (400×400) and one that I use in the article list (40×40) ?

Offline

#2 2008-02-12 19:14:22

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Multiple thumbnails (different sizes)

I seem to recall a similar request recently and I think that there is no way just yet


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2008-02-13 09:46:55

simsim
Member
Registered: 2006-05-06
Posts: 70

Re: Multiple thumbnails (different sizes)

Not possible without using plug-ins. There’s a plug-in for image and thumbnail manipulating but I can’t remember its name.

Offline

#4 2008-02-13 09:59:05

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Multiple thumbnails (different sizes)

simsim wrote:

Not possible without using plug-ins. There’s a plug-in for image and thumbnail manipulating but I can’t remember its name.

There is glx_admin_image but that does not allow for multiple thumbnails


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2008-02-13 10:01:57

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Re: Multiple thumbnails (different sizes)

I just like keeping the original image there, if I change the site layout and need a new image format.

Offline

#6 2008-02-13 10:10:52

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Multiple thumbnails (different sizes)

not a perfect solution but you can try lam_dynamic_image

so in your case, you could use two different forms for your article list and individual article as per usual (<article form="article_list"> and <article form="individual_article" />)

then in the form article_list you could have <txp:lam_article_image width="40" height="40" />

while in form individual_article you could have <txp:lam_article_image width="400" height="400" />

(take note you dont actually need both width and height attributes declared, as the plugin only resizes proportionally. also if you’re resizing giant images like 2000×2000 pixels, you might have to up your php memory limit as resizing takes a ton)

Last edited by iblastoff (2008-02-13 10:12:59)

Offline

#7 2008-02-14 14:03:59

simsim
Member
Registered: 2006-05-06
Posts: 70

Re: Multiple thumbnails (different sizes)

colak wrote:
There is glx_admin_image but that does not allow for multiple thumbnails

Actually I was referring to hak_article_image. Looks more versatile and it does support multiple thumbnails.

Last edited by simsim (2008-02-14 14:04:33)

Offline

#8 2008-02-14 18:28:06

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Multiple thumbnails (different sizes)

simsim wrote:

Actually I was referring to hak_article_image. Looks more versatile and it does support multiple thumbnails.

but as far as i can tell it doesn’t do multiple thumbnail sizes? which i’m assuming was the initial request by the OP

Offline

Board footer

Powered by FluxBB