faithful color....prevent resizing

my images are slightly desaturated in the resizing process...

i would like to prevent the resizing and instead show the image at its original size

i stumbled upon this old thread and was wondering how i can implement it into the current script(the thread is 4 years old)

http://www.zenphoto.org/support/topic.php?id=1914

it says

------------------------------------------

Let me try to get you straight....

You are wanting the gallery to function just as it does but instead of creating a resized image on image.php you want it to load the full image?

If that is what you want to do then change

<.a href="<?php echo getFullImageURL();?>" title="<?php echo getImageTitle();?>"> <?php printDefaultSizedImage(getImageTitle()); ?></.a>

to

<img src="<?=getFullImageURL();?>" />

in your image.php theme page (line 46 of default)

Comments

  • acrylian Administrator, Developer
    If your images are desaturated you use the wrong color profile. That should be sRGB as most especially older browsers do not support color profiles at all.

    The above topic is old but correct. Please read the theming tutorial to learn how Zenphoto themes works and where this might need to be changes (note, not all themes are the same especially 3rd party themes may do thing off the standard way).
  • This concept still would work. It does presume that you do not have your full images protected (set the option to `unprotected`)

    The code in the theme may differnt. What you want to do is replace the `printDefaultSizeImage()` function with '<img src...>` html as above.

    This does presume that your images are already the correct size for the theme.
  • acrylian

    i have tried srgb images but they are still slightly desaturated...not alot but enough to bother me. the same problem when i use imagemagick

    sbillard

    i tried editing this
    `
    <?php
    $fullimage = getFullImageURL();
    if (!empty($fullimage)) {
    ?>
    " title="<?php echo getBareImageTitle(); ?>">
    <?php
    }
    if (function_exists('printUserSizeImage') && isImagePhoto()) {
    printUserSizeImage(getImageTitle());
    } else {
    printDefaultSizedImage(getImageTitle());
    }
    if (!empty($fullimage)) {
    ?>

    <?php
    }
    ?>
    `
    where it says printdefaultsizeimage all it did was break the script ie i saw nothing but a snippet of the errored code on my page

    i am using the default theme...editing image.php
  • change
    `
    if (function_exists('printUserSizeImage') && isImagePhoto()) {
    printUserSizeImage(getImageTitle());
    } else {
    `
    to

    `
    if (isImagePhoto()) {
    ?>
    image" />
    Note: I have just created this on the fly. It is not tested and therefore may contain errors. For better understanding you will need to become familiar with the Zenphoto themeing tutorial and the functions guide.
  • thanks
  • Well, one thing for sure. Probably should be `echo html_encode($fullimage);` for validation!
Sign In or Register to comment.