Portrait images not showing up but landscape images are?

I've encountered an issue with my images. If I upload images that are portrait, they are uploaded to the server, but they do not display in the gallery. However, the landscape images all upload and display fine.

what could cause this?

Comments

  • acrylian Administrator, Developer
    We need more info like are there errors in the server's error log or in Zenphoto's log?
  • No errors found in the zenphoto log. I checked the server and the image files are uploaded but the portrait images show up as empty boxes (with file names) while the landscape images show up fine. The "missing" images are missing from both the gallery (thumbnails) and the image page.

    Approx 148 files were uploaded via ftp. I tried deleting and re-uploading a few times, all with the same result. I also tried upgrading to the newest version of zenphoto, same result.
  • Are the protrait images already "rotated" to portrait or do they need to be rotated by Zenphoto? If the latter, perhaps there is a problem with the rotation support in your PHP. Are the "missing" images showing up as "not found" (with the browser 'x') or just empty boxes?
  • the portrait photos are already rotated. the missing images are just empty (no red x)
  • Can you post a link to one of the images? Anything else that might be unique about those images?
  • The images I uploaded were not unique (as far as I can tell). I've uploaded two images to a test gallery (the 148 images I tried yesterday were password protected) to show you the behavior:

    http://www.cowleycrawford.com/album/test/

    I took photos for an engagement shoot, came home, downloaded them to my hard drive, then uploaded them straight away. nothing special was done.

    Not sure why this is happening... help!
  • Can you remove the password from the full image so that I can see it?
  • For me, the thumb and sized image both show with the browser red 'x', so I suspect that there was a script error in processing it. For script errors you need to look in your server CGI logs.
  • You are getting a memory error when processing the portrait image. I do not know what about portrait images would cause the processing to take more memory than the landscape ones, but using the trouble shooting guide article 25 you will see the error:
    `
    Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 11392
    bytes) in /home/content/c/o/w/cowleycrawford/html/album/zp-core/lib-GD.php on line 296
    `
    Your image filesize is 2.5 megabytes which is pretty big for WEB applications. However, it is not the file size that matters it is the image dimensions and the memory it takes to process the image. You might try disabling auto-rotation. Rotating an image will take more memory. So, specially if you think the image does not need to be rotated by Zenphoto that might be a work-a-round.

    Also look at the articles above #25 in the guide for more information on images that are too large to process.
  • Looks like it was the image rotate. I think I'll lower the image size and ensure rotation is done on my computer before upload...

    thanks for all of your time!!
Sign In or Register to comment.