thumbnail does not show up in next_image() loop

I have a strange problem with one thumbnail not showing up in the next_image() loop on album.php

Everything seems ok, the image has an ID, is published, has a date and publish date, title, dimensions etc.
The image shows up in the album image count, RSS feed, and is even used as a thumbnail from the album.

I also looked in the db in the albums and images tables but all seems fine.

It's a mistery why the image does not show up in the loop..

Comments

  • acrylian Administrator, Developer
    Does the thumbnail not show up itself or the whole image does not? What about accessing its image page directly? Or do you use the html cache? Then you probably need to clear it first (unless you are logged in).
  • Is it by any chance a CMYK image? (i.e. 4 colour process) Normal "web" images and photos taken off cameras are RGB, but printing processes need them converted into CMYK images.

    Most current browsers read them adequately, but if I remember correctly, the GD graphic engine doesn't process them. So you will see the image at the right size, but not otherwise.
  • It's just the thumbnail that does not show up in the loop.
    Very strange. It shows as the album thumbnail just fine. Also in my jcarousel_thumb_nav it shows up.
    Both image and thumb are found hotlinking to them. Really strange.
    I don't have the thumbnail in the cache because I feed them from a custom folder, but again it exists. Puzzeled.

    Here is the album where the thumb is missing:
    http://goo.gl/7FnX7
  • It is not obvious from the link what is missing. But regards to not having them in the cache because you feed them directly... Well, then it is not Zenphoto doing it because there is no way to show a resized image without it ending up in the cache.
  • This baffles me...
    When I do
    `
    while (next_image()) :
    echo getImageLinkURL() . "
    ";
    endwhile;
    `
    before the HTML output I get 4 links.
    The same code inside the HTML and I get only 3 links??

    I thought it was the 'thumbnails per row' setting in the theme options and bumped it up but even than I am using a custom theme.
    Maybe a pagination error?

    EDIT: NOT a pagination problem.
    the while loop in the HTML gives me also one image less?
    I tried adding some more images and the last one is always missing?
    Some sort of an array index problem with next_image()?
  • Gee I finaly found it!
    Sorry about the posts..

    I had this in the HTML somewhere before the actual next_image loop:

    `
    if (next_image()) {
    echo "
    ";
    }
    `
    This was always subtracting one image from the loop..

    Better is:
    `if (getNumImages() > 0) echo "
    ";`
Sign In or Register to comment.