Hello, I'm looking for a way to setup theme for all thumbnails in one way for example fixed height. Best way if is specific function, or hard coding based on DB and php. Is it able ?
By default thumbs are cropped and square and therefore have a fixed height. If you mean that uncropped thumbs should not exceed a specific height or width there is a set of maxspace functions. Take a look here: http://www.zenphoto.org/documentation/elementindex.html (use the browser page search to find them)
Hello , my problem is different - I wanted to make a gallery where they messed up pictures of panoramic and squared and vertical . At the moment, so that the pictures are scaled as an thumbnails by the longer side , but scaling panoramic pictures of longer side, thumbnails will be these super-tiny . It needs to scale the everything just by only vertical side . I read a whole section of theming and classes and all the forum and have not found any solution ....
Where are stored these features to the scaling of thumbnails, I have some knowledge of php so I would try and such a solution even though I know it's a very dramatic solution. I'd love to use this Zenphoto, because it seems to me the ideal for me program for creating the gallery, and I tried probably all based on PHP ....
Just to note `printCustomSizedImage(getBareImageTitle(), 50, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, true);` might also do what you wish given what settings you have on Options > Theme > Image size
Available are longest side, shortest side (so different for landscape vs portrait format), height or width.
Also as mentione there are the maxspace functions that set thumbs within a fixes widht x height values so they never exceed the space defined.
Ok I checked it and from what I understand it - all these functions are additional modifications to the early saved images, but I am looking for a solution of the native / default create thumbnails during an upload paintings or emptying the cache . I know it may destroys the idea of such updates and security application but would like to try this solution, is it possible?
I think you maybe misunderstand how Zenphoto's image resizing works. Zenphoto does not create any thumbnails or resized images on upload at all. Other CMS do but we generally leave it to the theme what sizes it needs when and where. So "default" here only refers to the image functions using the sizes set on Options > Theme.
There is a way to pre-cache images using the cacheManager (specific sizes need to be registered by the theme) but it is actually not really necessary. Please read here: http://www.zenphoto.org/news/caching/
You actually got plenty of info how to setup thumbnails on your theme. So before you contact via paid support maybe try again to explain what you actually mean. Maybe give a concrete example. And maybe best read our glossary first so you use the right terms and we don't miss each other: http://www.zenphoto.org/news/zenphoto-glossary/
Hello! finally I caught it, it's all quite simple, hurray! within a few days I will show you a sketch of my template, for now thank you very much for your help, I get to work, thank you again!
Comments
If you haven't please read theming tutorial first: http://www.zenphoto.org/news/theming-tutorial
Within a `next_album()` loop use something like this:
`printCustomAlbumThumbImage(getBareAlbumTitle(), NULL, NULL, 50, NULL, NULL);`
This will create album thumbs 50px high.
(http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomAlbumThumbImage)
Image thumbnails:
Within a `next_image()` loop use something like this:
`printCustomSizedImage(getBareImageTitle(), NULL, NULL, 50, NULL, NULL, NULL, NULL, NULL, NULL, true);`
This will create image thumbs 50px high.
(http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintCustomSizedImage)
Available are longest side, shortest side (so different for landscape vs portrait format), height or width.
Also as mentione there are the maxspace functions that set thumbs within a fixes widht x height values so they never exceed the space defined.
There is a way to pre-cache images using the cacheManager (specific sizes need to be registered by the theme) but it is actually not really necessary. Please read here:
http://www.zenphoto.org/news/caching/
Thank You