Thumbnail/Resize size in album templates? Not current but config value

kaeptn

Joined: 2006-07-16
Posts: 5
Posted: Wed, 2006-07-19 20:50

Hi there,

I'd like know how to get information about the currently configured thumbnail and resized pixel sizes on per theme basis. I want to use the height information to set sizes on row elements and the width for columns.

I'd prefer to have a solution in theme.inc and make these sizes available to smarty somehow.

Since I am newbie I don't quiet know where to get that information elegantly. I figured out that this information resides in g2_DerivativePrefsMap but perhaps there's already some callback to this.

If not I assume I have to query this from the database but I am sure there's an API connection to this already.

Any hints?

TIA