Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-01 00:14:16

hilife
Member
Registered: 2007-08-21
Posts: 11

custom article image size

Hello guys is there a plugin or a way i can resize an article image , i thought this would work..
<txp:article_image custom_width=“integer” />

Offline

#2 2008-03-01 01:41:40

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: custom article image size

custom_width is not an attribute <txp:article_image /> will recognize. The tag does always output width and height attributes, which is not helpful when you want article images that scale.

There are scads of image plugins, and it’s likely that some give you the image sans width and height. Then you can size the image using CSS. Actually I made my own for this very reason, although I haven’t released it publicly, figuring there are already enough custom image tags out there.


Code is topiary

Offline

#3 2008-03-01 09:42:01

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: custom article image size

i guess what you’re looking for is lam_dynamic_image which resizes images on the fly in whatever dimensions you specify in the tag.

Offline

#4 2008-03-01 10:18:16

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

Re: custom article image size

There is also glx_admin_image


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-03-01 10:21:49

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: custom article image size

resizes images on the fly in whatever dimensions you specify in the tag.

If the memory limit allows ;) Shared hosts can be tricky when using on the fly resizing, as GD requires a lot of memory when it resizes something. What bigger is the original image, the more it needs memory.

Offline

Board footer

Powered by FluxBB