Member
Member
mironb   13-04-2009, 17:34
#1

Hi
I am using now 1.22 version of zenphoto. I would like to upgrade it to 1.24 version but thumbails on index page of newest photos looks bed. In 1.22 they are crisp at 180x140px but when I upgrade zenphoto to 1.24 they are upscalled from 85x85px to 180x140. What can I do with that ?
Best Regards

Administrator
Administrator
acrylian   14-04-2009, 09:07
#2

What theme? Do you have a link maybe?

Member
Member
mironb   14-04-2009, 09:15
#3

That's my custom theme but this code I've taken from garland and in css file I changed to:
'div#images img{
border: 2px solid #444;
color: #CCCCCC;
width:180px;
height:140px;
margin:8px 8px 8px 8px;
background:#555;
}'

Administrator
Administrator
acrylian   14-04-2009, 09:34
#4

Then the image are scaled by CSS I guess. You of course need to set the real image sizes to match that, too. Either by setting the options or using custom image size functions.

Member
Member
mironb   14-04-2009, 10:14
#5

In zenphoto administration/theme options I have thumb size: 180 and Crop thumbnails 180 x 140 Where can I find custom image size functions is it that function ?:
getCustomImageURL [line 2626]

Returns the url to the image in that dimensions you define with this function.
Parameters:
int $size: the size of the image to have
int $width: width
int $height: height
int $cropw: cropwidth
int $croph: crop height
int $cropx: crop part x axis
int $cropy: crop part y axis
bool $thumbStandin: set true to inhibit watermarking

string getCustomImageURL( int $size, [int $width = NULL], [int $height = NULL], [int $cropw = NULL], [int $croph = NULL], [int $cropx = NULL], [int $cropy = NULL], [bool $thumbStandin = false] )

Administrator
Administrator
acrylian   14-04-2009, 11:19
#6

Yes, that is one of the functions, this returns only the url. There is also a print equivalent and some more other variants.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.