ZenphotoCMS Forum
index display full size image - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: index display full size image (/thread-6271.html)



index display full size image - barrento - 12-12-2009

Hi,
In the "Effervescence_plus" theme which file should I edit to the main photo is displayed in full-size? I changed the frame size to the size of my images, but the photos are enlarged... any help, please?




index display full size image - acrylian - 12-12-2009

Please consider to read the theming tutorial to learn how Zenphoto themes work.




index display full size image - barrento - 12-12-2009

That is a good ideia :) but I thought it was easy this way...
I guess what to change (I dont know nothing of PHP) but looking at the files I discover where... but the images are still a bit stange...
Thanks Acrylian




index display full size image - barrento - 12-12-2009

I read all what I think it is needed, seach the forum, etc, but I still cant do it :(
Does anyone knows a way to put a random image in its full size? I will appreciate any help. http://www.barrento.com/emag/zenphoto/index.php




index display full size image - sbillard - 13-12-2009

There is really no concept of "full size" for an image displayed by a theme. You have two choices.

1.Pick a size you consider "full" and use it for your image sizes.
2.create an image src link using `getUnprotectedImageURL()'. This will, of course, jeprodise the theme layout since there may not be uniformity of image size and orientation.




index display full size image - barrento - 13-12-2009

sbillard,
what I mean is that "effervescence_plus" displays at index an image that is not at the size that image has on my folders. It looks like e crops a thumbnail and than enlarge it...
what I was looking for was a method to put a random image - at the size of my images on my "albums" folder - on my page... what I manage now http://www.barrento.com/emag/zenphoto/index.php :)
the bad news is that i can only display image from one folder at the time... :(




index display full size image - sbillard - 13-12-2009

That image is shown by using the printCustomSizedImage() function. Just change the size parameter to what size you want.




index display full size image - barrento - 14-12-2009

Thanks, but where can I chande it? I try to read all the things about it, but still no changes...




index display full size image - acrylian - 14-12-2009

You probably have to modify the printheadingImage() custom function in customfunctions.php).




index display full size image - barrento - 14-12-2009

thanks acrylian, I finally did it! With lots of trial and error, lol!... PHP is a strange language to me :)




index display full size image - barrento - 14-12-2009

ups..there is more one problem: it only works with horizontal images, not with vertical ones :(




index display full size image - barrento - 14-12-2009

I have this:
}
$randomImageURL = htmlspecialchars(getURL($randomImage));
if (getOption('allow_upscale')) {
$wide = 890;
$high = 600;
} else {
$wide = min(890, $randomImage->getWidth());
$high = min(600, $randomImage->getHeight());
}
echo "




index display full size image - sbillard - 14-12-2009

You will have to test the image orientation (it's native height & width) and set your picture height/width appropriately.