Squared Thumbnails in Grid Block

soulreaper

Joined: 2007-11-24
Posts: 5
Posted: Tue, 2008-02-19 21:09

Hi folks

First of all let me congratulate you to such a great wordpress plugin. :)

I want to use the grid block to show my latest images as very small thumbnails eg 65x65. Sadly though i can only display them in their native dimensions (which is usually a 4:3 ratio). From what i have read on the forum the images used in the grid are actually the thumbnails of the gallery2 scalled down in html (or from the bigger gallery2 files if the images in the block are larger than the thumbs).

my problem is, that i don't want to use squared thumbnails in my regular gallery. i just want them in the grid block sidebar in my wordpress widget bar. so therefore the question is... is it possible to use squared images although the regular thumbnails are of a different ratio?

thanks for any help :)

btw... a freely choosable number of images in the grid would also be nice.

btw2... i use gallery2 2.2.4 and wpg2 3.0.2

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-02-19 21:43

Hiya soulreaper,

Sorry but we just do not have any functionality to "square" the sidebar images. Nice idea although.

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
soulreaper

Joined: 2007-11-24
Posts: 5
Posted: Tue, 2008-02-19 22:09

judging from the source you use the g2_sidebargridblock() function which comes from the gallery2 (i guess). so this generates the grid code which you don't have control over right?

One would need to create a custom Grid widget which generates the images from the original images (probably from "the next best fitting size"). Ideally this approach would cache the images and shuffle them around when new images are found in the gallery2. Of course this would also require image processing (gd, imagemagick, etc.) which the wpg2 plugin doesn't do right now (i guess).

(a lot of guessing here ;))

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-02-19 22:52

You are not far off the mark, WPG2 uses the Gallery2 Imageblock module to grab images, thus in this release we are limited to what functionality the Imageblock module will provide us.. We have a development task to instead code an internal WPG2 routine to directly grab images out of Gallery2 thus giving us much better control over what is outputted. Until this task is completed ideas such as yours would not be possible..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo