Question: Only Thumbs and Resized Images

I got a question about zenphoto.. Since i have over 8000 images now in my zenphoto gallery it is pretty obvious that this consumes a lot of webspace.... so I was wondering if it was possible to only store the resized images (595px longest side) and the thumbnails without having to upload the full original images (this also implies that i dont want the "show original photograph" functionality, but i do know how to remove this from the theme.)

So in short: Is it possible to only upload the "generated"/resized images without having to upload the big full originals... And if so... How to do this?

Comments

  • trisweb Administrator
    First resize your photos to the size you want them displayed, before uploading -- in this case 595px. Then, Zenphoto will use those as the display images without processing them, and will only process and store thumbnails.

    If you're proficient in PHP, you could hack i.php to replace the original image with the resized version instead of caching it. Further requests for the image will be served from that (new resized) original.

    Also, if you have shell access to your server you can use a program called ImageMagick to batch-convert every JPG file in /albums to resize to 595 pixels.

    There are lots of ways :) The point being, if the originals in the /albums folder are 595px or smaller, they won't be resized, they will just be used as they are, and won't take up any extra space.
  • thanks trisweb... this is some great support... now i just hope imagemagick will work on my kubuntu. thanks again
  • Hi
    I have a similar question. I never upload my originals (raw) but only resized images that fit the size parameter (800px in my case).

    As my jpeg fit the size parameters, you said that they are just used like they are. But files in the cache are not the same as files in albums. For instance the picture I have uploaded is 106Ko where as in the cache the "same" picture is 198Ko. Every exif info have disappeared, no more embed copyright etc…

    How to proceed to have exactly the same picture in the cache ?

    Thanks.
  • acrylian Administrator, Developer
    This is not true anymore. Zenphoto always processes the images to avoid overhead of checking if it needs processing at all. You know Zenphoto is filesystem based so this is for performance improvement. You of course should never upload huge raw images to not have your server crash. But the full images are needed as from these the thumbnails are created. This is how Zenphoto works. Otherwise you have to upload the image every time you change your mind about for example thumb sizes.

    See the troubleshooting there is a diagram that explains how Zenphoto works.
  • But to answer your question. You must upload the file to the cache using exactly the name Zenphoto used when it created the cached image. But, for the reasons Acrylian states this it not recommended.
Sign In or Register to comment.