Pre-Cache Images question - thumbnails

So I'm putting the finishing touches on a new theme/layout for my site. One of the things I've done is upgraded to the latest nightly, cleared all caches, etc.

Now I'm re-creating the image cache and one of the things I notice is the precache image function under admin caches the full-size image, then a thumbnail, which is excellent. One problem though.

The thumbnail it's caching isn't the dimension used in the theme. I'm assuming that it's caching thumbnails that are the size used in the admin back-end.

Would it make sense to have this also cache the thumbnail at the size designated in the theme options?

Comments

  • Yes, probably would. We will look into this. I'm suprized that this has not shown up before, though. For most installs all images are cached.
  • How about some more details? I just looked and the admin part just gets a "standard" thumbnail, so I am not sure why it would be a different size. Anyway, the thumbnails I see in my cache all have size information as part of the name.
  • Ok, so the theme options allow you to specify a thumbnail size. For instance right now I have my theme thumbnails set to 150px.

    When I pre-cache images, I get the original, then a smaller thumbnail such as "2010-03-26 22.35.30_95_cw81_ch81_thumb.jpg".

    So the thumbnails being generated are all 95x95, instead of 150x150. Does that make a bit more sense?

    Perhaps a separate function or switch to enable caching of thumbnails at the size designated via theme options?
  • Got it. Give tonights nightly a try. I've added any relevant info to the cachefilename so each instance should be unique.
  • acrylian Administrator, Developer
    Just to note: of cource if you use custom size image functions on your theme they can't be prechaced since the backend does not know about that.
  • Um? what are you saying? Any image can be cached (and will be cached) so long as you are not generating an i.php link "by hand"
  • Thanks, I'll check out the nightly tonight after it posts and let you know the results.
  • Version 1.3.1.2 [6394]still exhibits the same behavior. Unless I'm missing something somewhere.

    In my theme options, my default thumbnail size is 150px, when I goto albums and click the precache images button it still only generates two images. A 95x95 pixel image, and the fullsize image.

    To me, it would make sense that the precache images button generates a thumbnail set at the theme's default thumbnail size. Else, if someone wants the thumbnails pre-cached they'll have to navigate every page of their gallery and albums to make sure the thumbs are generated and cached.
  • Good that you mentioned the precache button. That feature is quite old and disabused. (We do not really recommend it, after all.) It looks like it does not pay attention to the theme selected and just uses the gallery defaults (which might or might not be the same, it is complecated.)

    Anyway, I will fix it to load the options for the default theme. Tonight's build.

    Still, there is no need to precache at all as we have said for many years. Zenphoto will create the image as needed.
  • I know there's not a real need to precache, but I prefer to have my images snap instead of the delay while they are generated, which sometimes can take up to ten seconds on an album page that has 20 images on it.

    On average there's not a need, just a more polished feel for me to have my thumbs already cached and snap in nearly instantly.

    Also it's not just the main precache button but the precache for each album as well from the album page.
Sign In or Register to comment.