index display full size image

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?

Comments

  • acrylian Administrator, Developer
    Please consider to read the theming tutorial to learn how Zenphoto themes work.
  • 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
  • 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
  • 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.
  • 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... :(
  • That image is shown by using the `printCustomSizedImage()` function. Just change the size parameter to what size you want.
  • Thanks, but where can I chande it? I try to read all the things about it, but still no changes...
  • acrylian Administrator, Developer
    You probably have to modify the `printheadingImage()` custom function in `customfunctions.php`).
  • thanks acrylian, I finally did it! With lots of trial and error, lol!... PHP is a strange language to me :)
  • ups..there is more one problem: it only works with horizontal images, not with vertical ones :(
  • 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 "<img src='".
    htmlspecialchars($randomImage->getCustomImage(600, $wide, $high, $wide, $high, 800, 600, !getOption('Watermark_head_image'))).

    How can I put it to work only with the horizontal images?
  • You will have to test the image orientation (it's native height & width) and set your picture height/width appropriately.
Sign In or Register to comment.