How to change thumbnail size

In my gallery.php page I am calling the getAlbumThumb function which returns the url to the thumb.
No matter what I do I always get this:

/zenphoto/zp-core/i.php?a=new-york&i=ny-19.jpg&s=75&cw=75&ch=75&q=75&t=1

which basically give me a 75x75 px thumbnail image. How can I change that ? Is there a way to change the thumbnail size by default, is there another function that I could use to create a url with the proper sizes for i.php or should I hardcode the url in my file ?

I found in the option tabs that I can change the quality of the thumbnail but even cranking it up to 100 I end up with q=75 in the url.

thanks for your help.
cheers,
frank.

Comments

  • The default size of the thumb is set through the admin tabs for the theme options. Same place you found the quality option (which has nothing to do with the dimensions of the thumb.) There are also "custom" functions that parallel the standard ones.
  • frankm Member
    thanks for the answer. yep i understand we can change the thumbnail size in the admin option tab. yet looks like it is working fine when calling the 'printAlbumThumbImage' function which (if i am correct) return the actual image and not a url (that what is done in the default theme i believe).

    what i want to do is to have only one thumb image which changes on-the-fly when i mouseover the album link. for that i need to pass the url to a javascript function. and i was hoping to be able to that with the 'getAlbumThumb' function but from what i can see in the 'code source' of my webpage, the function always return the same url without taking into account the setting for the thumb size and crop.

    well thanks for your previous answer and i hope i do not look to stupid.
    cheers,
    frank.
  • frankm Member
    i forgot... i have tried the 'printCustomAlbumThumbImage' but agaun this print the image directly. but i just found out the 'getCustomAlbumThumb' which might do what i want.

    i keep you posted.
    frank.
  • getAlbumThumb will always return the "standard" thumb. If you want multiple thumbs you will need to use the custom functons.
  • frankm Member
    thanks. i got it to work using the getCustomAlbumThumb function. i didn't know about the custom functions until not long ago and i should have waited a bit before posting !

    anyway thanks a lot for your time.
    frank.
Sign In or Register to comment.