Thumbnail Size

ty2d

Joined: 2003-01-04
Posts: 103
Posted: Fri, 2008-06-13 18:06

Is there a way to control the size of the thumbnails which are choosed via G2 ImageChooser for the content?

Mine are 150 x 150px and in the new version of my site, i don't need them so large any more. I did found the code, where the dimensions are controlled by, but i was not able to change it.

Any help on this?

 
aquanox24

Joined: 2008-06-25
Posts: 10
Posted: Sat, 2008-06-28 09:32

Hi,

can you tell me, where you found the code.
I need this feature too!

thank you

 
ty2d

Joined: 2003-01-04
Posts: 103
Posted: Sat, 2008-06-28 19:23

search for the following code:

$item_info['thumbnail_width'] = $thumbnail->getWidth();
$item_info['thumbnail_height'] = $thumbnail->getHeight();

and then change this part here: $thumbnail->getHeight(). Problem for me is, that i have different photographer who upload there pictures in different dimensions, so the thumbnail doesn't look really good, when i change the dimensions in the above code.

Maybe you have more luck