![]() |
|
Thumbnail help please - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Thumbnail help please (/thread-3331.html) |
Thumbnail help please - cesc - 2008-07-19 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
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 Thumbnail help please - cesc - 2008-07-19 Ok I've sorted out how to manually add thumbnails and have zenphoto use them so that's good... one down. However I'm still stuck on the second issue of how to come up with a standard landscape and portrait size for non-cropped thumbnails. Thanks again. Thumbnail help please - jackdaw - 2008-07-19 Is this page something like you want to avoid? 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 Thumbnail help please - acrylian - 2008-07-19 Ttry this within the next_image() or next_album() loop on album.php/index.php to get thumbs within fixed dimensions (in this example 150x150px):
It is on the list (at least on mine) to add this as default behaviour if cropping is turned off, too. Thumbnail help please - cesc - 2008-07-20 Thank you acrylian :-) 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 :-)
Sorry, I know it must be hard to have to support people like me that are fairly clueless Thanks again. Thumbnail help please - jackdaw - 2008-07-20 "It is on the list (at least on mine) to add this as default behaviour if cropping is turned off, too."... 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. Thumbnail help please - acrylian - 2008-07-20 @cesc: The code I posted can be used for the sized image (on image.php) to replace the printDefaultSizeImage() call or the thumbnails within an album to replace the printImageThumb() call. 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/ Thumbnail help please - acrylian - 2008-07-20 @jackdaw: [i]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.[/i] Thumbnail help please - cesc - 2008-07-20 Thanks acrylian. I got it to work but what is happening is that some thumbnails are 150 high and others are 150 wide but as some that are scaled to 150 wide are showing as 208 high or 189 high etc etc - it's still a mess and I can't present a gallery of 150 by 150 squares with the picture fitting in either portrait or landscape - so I am going to have to go back to Gallery 2 because I will be adding dozens of photos week in and week out as my site is sports related - and theres no point in software like this for me if I have to create manual thumbnails for everything. 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 :-) Thumbnail help please - acrylian - 2008-07-20 I just did a test again and my code from above is working for me with the thumbnails (those in the album), but it is somehow not with the album thumbnails. I must admit that hack was actually made for the sized image on image.php and did not test it with album thumbs. I don't know those functions should actually work the same... Guess I have some investigation to do before I can make this as an option... No problem, Gallery is not a bad program at all..:-) Thumbnail help please - jackdaw - 2008-07-20 Hello acrylian, about my reply and suggestion for the printing of the actual size information of the images/thumbs inside the img source tag... 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: Thumbnail help please - acrylian - 2008-07-20 OK, thanks. Of course I know that you had this in mind. I just was not aware that the img tag parameters do indeed have an effect on css positioning. We will add that. |