Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-08-31 22:14:16

aba
Plugin Author
Registered: 2004-04-14
Posts: 119

width/height of thumbnails in the database

I wanted to try out some css tricks to style my thumbnail galleries a bit nicer (especially centering).
Apparently some of these tricks require that the width/height of the involved images is given.

Unfortunately these values are not stored for thumbnails. Because I don’t use a specific thumbnail format (the thumbnails are in different sizes) I can’t circumvent this by just using fixed values.

Is it planned to remedy this in a future version?

Offline

#2 2008-08-31 22:36:46

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: width/height of thumbnails in the database

upm_image will do it, but you can also use PHP’s getimagesize().

Last edited by jm (2008-08-31 22:38:22)

Offline

#3 2008-08-31 22:43:50

aba
Plugin Author
Registered: 2004-04-14
Posts: 119

Re: width/height of thumbnails in the database

Sigh… Why do I always forget that I can use php in the txp forms?

Thanks for the reminder.

Offline

Board footer

Powered by FluxBB