J ust want to be able to dump photos into a directory on my server and be able to generate a simple of thumbnails and a way of looking at them and the photos. I tried Autogenerating Photo Gallery (AGG).

I uploaded the package as it came with its sample photos to
http://lgrossman.com/pics/AGG/ and it works fine. The sample thumbs appear and link to the full photos.

I then created a new test gallery for some of the photos from my Palm Centro. I had to edit the php in AGG to recognize my thumbs which were named xxx_t.jpg and that worked. The thumbs appear. I didn't change anything else, but when I click on a thumb the application appears to be looking for the image but never resolves.

See http://lgrossman.com/pics/palm/

Thanks,

Len

Dani AI

Generated

reported thumbs appear but clicking a thumbnail never finishes loading; suggested switching galleries. Before rebuilding, try this short checklist — it often finds the problem quickly and can save time.

  1. Verify the URL the gallery generates. Right‑click a thumb -> Copy link address -> paste into the address bar. If it never loads, open Developer Tools > Network to see the HTTP status and any redirects.
  2. Test the file directly from the server with a tiny PHP probe to confirm the file is present and readable:
<?php
$img = 'path/to/that/image.jpg';
if (!file_exists($img)) { echo "MISSING\n"; exit; }
if (!is_readable($img)) { echo "NOT READABLE\n"; exit; }
header('Content-Type: image/jpeg');
readfile($img);
  1. Check common causes:
  • Path/URL mismatch or wrong base href (relative links breaking).
  • Case sensitivity: filenames that worked on Windows break on Linux.
  • Permissions/ownership: files should be readable by the web user (typically 644 files, 755 dirs).
  • Large originals exhausting PHP memory/time limits when the gallery tries to stream or resize on the fly (look for “memory exhausted” or 500 errors in PHP/Apache logs).
  • .htaccess or mod_rewrite rules, mod_security, or SELinux blocking direct access.
  • Spaces or non‑ASCII characters in filenames that are not URL‑encoded.
  1. Quick fixes: manually open the direct image link to see the server error, rename problem files to safe names, increase PHP memory_limit if resizing in PHP, or pre-generate scaled copies to avoid on‑the‑fly processing.

If a replacement gallery (as suggested) is desirable, choose one that either serves static files or precomputes scaled images so the server doesn't generate large files at display time.

Recommended Answers

All 3 Replies

use a different gallery
there are thousands, many that do not require thumbs to display thumbs

use a different gallery
there are thousands, many that do not require thumbs to display thumbs

Any suggestions of another gallery. I realize there are thousands and have tried a couple. But time is so limited.

Len
Computers are supposed to save time for something other than computers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.