Thumbnails replaced - apect ratio lost

Hi Everyone,
I spent some time preparing my thumbs using the nice and efficient zp tool. So it's done, cool ..... but, some days later I had the surprise to see that some of my thumbs had been replaced.
The new one had seemingly been obtained by a resize without crop, which leads to a loss of the aspect ratio (image is crushed vertically for ex.)
What happened ?
Clue : In the mean time, I had replaced the album images by smaller images (using a brutal ftp replace.)
happy end: I had saved my site after thumbs creation, including my beloved thumbs ...
BUT:
I'ld like to know what happened so that I can do the right thing next time ...
Is it a bug ?
Why changing thumbs without warning while there are already (nice) thumbs ?
Why this aspect ratio loss ?
Thanks for any advice or clue,
Nicolas

Comments

  • acrylian Administrator, Developer
    The manual cropping is of course dependent on the dimensions of an image. If you know replace such an image with another one that is smaller dimensionwise the cropping might not work. It is recommended to clear the image cache when changing anything and let ZP regenerate the images.
  • Sorry, i forgot to say :
    Theme : zpgalleriffic
  • Thanks Acrilian (one more time :o) )
    Info :
    By ftp, I replaced the albums Images by the sames images but smaller --> SAME aspect ratio, SAME file name.

    zp cropping generates thumb files in the cache, no ?
    Does it regenerate the thumbs when album files are replace outside of zp ? (by ftp)
    Does he know files where changed ? ... and re generates new thumbs ?
    Aspect ratio, I reformulate the question :
    Why does zp produces thumbs by resizing a WHOLE NON SQUARE image to get a SQUARE thumb ?
    The inevitably creates a distorted image ...
    Thanks for your patience ...
  • acrylian Administrator, Developer
    First I don't know what zpGallerfic does internally regarding images. Theme may override these settings by hardcoded sizes for design reasons. Btw. what Zenphoto version? If not 1.3.1 please upgrade first and try one of the standard themes.

    Generally ZP should not replace existing cached thumbs if the file name and format does not change. I think my collegue sbillard will respond to this later. He is a little more familiar with the image processing. I currently do not remember if Zenphoto recognizes file date changes as well.
  • ... version 1.3.
    Thanks, ok, let's wait for sbillard's opinion about that Image processing stuff ...
    Bye
  • Well, ZP does as it is asked. Normally it will not resize at all to make a thumb, it will just extract a square portion. From your description I would guess that the theme is supplying height/width HTML settings. Either that or it is doing some sort of strange custom image.
  • Thank's Sbillard,
    Well, I guess the only thing I can do is find where zpgalleriific controls thumbnails generation and kick its ass to to get it done the right way ...
    Bye and thanks for this super support your bringing to zp.
    Bye
    Nicolas
Sign In or Register to comment.