Hi there,
Thanks for creating such a great app.
I have a couple of questions. I have read around and found related threads but not been able to understand the answers or where the various code snippets go etc
1. I created some 100 x 100 thumbnails on the desktop and added the _100 to the image name and ftped them into the appropriate folders within the cache directory (after clearing the cache via the admin interface) however zen photo continued to make it's own thumbnails from the larger images. Can someone explain blow by blow how I get zenphoto to use my thumbnails that are created by me and uploaded rather than generating it's own. As I really need the heads of people to remain intact.
2. I tried turning cropping off but I have a wide range of images that I'm using - their sizes vary a lot and I get such an assortment of thumbnails if I leave them uncropped that the gallery looks plain ugly. Can someone explain clearly what code would need to go into what file - if their is a hack that would enable me to set a max size for both height and width. As if all thumbnails would be either 125px wide or 125px high then I could handle that with css.
I really like this app but I am going to have to go back to Gallery 2 if there is no easy way to tidy up the appearance of the thumbnails that still allows people to keep their heads attached to their bodies :-(
Thanks in advance for any help
Comments
Thanks again.
http://www.spoenk.nl/beeldend/fotografie/natuur/zaden-pitjes/
It's my 'ugliest' page because of the different sizes of thumbs, but I don't know how to avoid this. I know you can crop 'manually' with getCustomAlbumThumb (goes for images too), but I have no experience with this.
http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html
`if (getFullWidth() === getFullHeight() OR getFullWidth() > getFullHeight()) { printCustomSizedImage(getImageTitle(), null, 150, null);
} else {
printCustomSizedImage(getImageTitle(), null, null , 150);
}
`
For album thumbnails there are separate functions like `printCustomAlbumThumbImage()`.
It is on the list (at least on mine) to add this as default behaviour if cropping is turned off, too.
Ok sorry to be a dimwit but can you tell me two things and then I shall go away and try not to bother you anymore :-)
1. In the album.php or image.php what is the code that should immediately precede the snippet you have advised me to insert... I want to make sure I am putting it in the right place and I don't know php at all sorry.
2. Will this fix the thumbs in the albums - as that's what I'm trying to fix or should I be modifying the printCustomAlbumThumbImage() in some way
Sorry, I know it must be hard to have to support people like me that are fairly clueless
Thanks again.
Great!... :=) And, if possible, print the actual size information of the images/thumbs inside the img source tag. That would make it easier to style and position the images/thumbs with css.
For the album thumbnails (the one for an album) you need to use printCustomAlbumThumbImage() instead of printCustomSizedImage().
Please take a look at our theming tutorial to get a little familiar with zenphoto's general theme structure: http://www.zenphoto.org/2008/05/theming-tutorial/
I know this is recommended so that browser can better render the page, but what has that to do with CSS styling? Probably I miss something.
Zen photo is excellent I can see that and it is so close to being a solution for me but the gallery has to line up without players losing their heads.
Thanks anyway :-)
No problem, Gallery is not a bad program at all..:-)
I made a quick sample to show you what I mean. In this example it is fairly easy to center thumbs/images which are not square both horizontally and vertically. This way custom sized thumbs could be used within a floating design:
http://www.spoenk.nl/public/test.html