[SOLVED] Thumbnail Creation Problems

dms

Joined: 2005-01-17
Posts: 17
Posted: Mon, 2005-01-17 23:23

I've read the other thumbnail threads, but am having no joy with them myself.

I don't seem to be able to generate any thumbnails (cached) or resized versions of files.

I've tried the alpha4 and the cvs from a couple of hours ago (with a complete wipe inbetween).

I have gd and netpbm modules installed, and changing their proirity makes no ends.

Although the thumbsnails size are changed if i change their size and tick the the "recreate" option and even though i can see pbm utlity cpu usage on the server, no thumbnail files appear to be created.

Where exactly should they be created (i see nothing in the album dir, thumbnail dir or in the database) and how can I tell why they're not being created?

I'm using apache 2.51 with php 4.10 on freebsd with the cvs of tonight.

Any other details I can give or parts of a debug log I've generated?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-01-17 23:35

what do you see when you view the album? "no thumbnail" or a broken image icon or ?
thumbnails are created in the derivative cache (g2data/cache/derivative/....)
you can turn on debug output in config.php and look for where the netpbm calls are made to create the thumbnail.. it will show you any output those commands spit out.

 
dms

Joined: 2005-01-17
Posts: 17
Posted: Tue, 2005-01-18 07:57

When I view the album I see thumbnails, but they are being generated dynamically, and not stored statically (which I assumed that gallery2 is meant to do as gallery1 does)

I've produced a debug log, but I'm sorry to say it doent mean much to me!!

//edit. Ok, Now if I change the thumbnail size in edit albums, then check the recreate thumbnails button, then browse to the effected album, then I can see files being created in the derivitive cache.

I think thats sorted my confusion now. The thumbnails hadn't been created originally, and without the above exact proceedure (before I was always ticking both boxes for recreating) I imagine they weren't being created.

 
itcheg

Joined: 2003-11-30
Posts: 87
Posted: Tue, 2005-01-18 08:22

The first time you visit an album it will create the pics, which are then cached for subsequent visits in g2data/cache/derivatives.