netPBM and other issues.

mixel

Joined: 2003-03-15
Posts: 35
Posted: Wed, 2005-03-30 07:33

I'm getting along well with G2 - I updated to a nightly a few days back and it fixed a few problems i was having.. But I have a few persistent odd issues.

I seem to be having the problems listed here: http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=27108 .. I'm running on WestHost. I know this is probably something you're working on already, but thought it'd be good to add some details in case a lot of people have the same. the php memory limit is set to 16MB so I don't know if it's that..

1) I've found that using GD as top priority, sometimes when importing G1 albums it'll hang when it gets to some large pictures. I'm pretty sure it's when making the thumbnails.

The problem is, then viewing the gallery folder with that picture in becomes impossible.. It just gives a blank page - even if the pic in question's thumb is just being shown as the highlight in the folder above, that page stops displaying too. It stops displaying in all edit windows too! So I can't even delete it, so I'd just been deleting the album from a level up and putting it back more carefully. (not good if the same error happens when I upload a file - which it hasn't yet) If I switch to ntPBM then these evil thumbnails aren't generated.

2) The above wouldn't be a problem then, as I could just use netPBM.. But some pics, random seeming gifs in particular don't get thumbnails generated when I'm using netPBM.. Sometimes almost an entire folder will fail to generate thumbs (gives me broken thumb icons) and I'll have to switch to Gd temporarily to generate more. I'm a bit scared of leaving GD as the primary library in case I upload something to a folder then it cripples a part of the gallery.

Only error testing netPBM gives me is:

bmptopnm Failed
Error messages: File does not exist
ppmtobmp Failed
Error messages: File does not exist

Those shouldn't affect Gifs should they? It says "Debug output (2 failed tests) " at the bottom - I assume it's talking about the same file not found errors above.. (sorry, I don't understand the error report, hehe)

I would install ImageMagick but have had huge problems trying to compile it, I can't get it to work at all, frustratingly. For now I'll try to remember to upload as few GIFs as possible and stick with netpbm! :)

---

They were the only big issues I had, I hope it's ok to put my minor questions here too.. Neither of these are particularly urgent.

3) Half my pictures have now got item "actions/create link" for all visitors. How can i disable it? (I get the feeling that's an obvious thing I've missed somewhere)

4) The image block seems to only do popular/random pictures.. Is there an easy way to set up a featured photo using it?

Thanks for your time, I'm enjoying using G2. (and thanks for your help last time mindless!)

----

Gallery URL (optional):
Gallery version: G2B1 (+25/March/05)
Webserver (with version): Apache (not sure of version)
Datatabase (with version): MySQL 4.1.9
PHP version (eg 4.2.1): 5.0.3 I think
phpinfo URL (optional): ?
Graphics Toolkit(s): Netpbm / GD
Operating system: OsX local, Redhat remote
Web browser/version: Safari
G1 version (for migration bugs): n/a

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2005-03-31 04:12

1/2) I'm guessing that something is going wrong with GD/NetPBM, but it's a little tricky to tell the exact problem. Here's something you can do to try to figure it out. Edit your config.php and put G2 into logged debug mode (read the comments in that file for instructions). Then, as root, delete your g2data/cache/derivative directory. Now view an album.

If you get any broken thumbnails, then the exact error will be in the logfile. Put a link to the logfile somewhere that we can see it and we'll figure a way to diagnose this.

3) You must have an album that is writeable by guests. If guests have write permissions, then they can also link any existing item into that album.

4) You can do "Picture of the Day/Week/Month" -- is that good enough? Site Admin -> Random/Popular.

 
mixel

Joined: 2003-03-15
Posts: 35
Posted: Thu, 2005-03-31 07:06

I'll do the config.php thing and link to it tonight when I have a little more time.. Thanks for the advise. :)

3) Aha.. A way to disable that feature completely for the entire gallery would be useful, as I have no need for it really, but do use the guest posting access in one section.

4) That would be great, but (feeling a bit stupid here) I can't for the life of me find where I flag pictures as "Picture of the X" - It's not in the block's settings, and it doesn't seem to be in each photo's options..? Maybe something's gone funny with my install.
edit - Ack! I think I misinterpretted what they were supposed to do.. They pick a new 'photo of the X' randomly? Oops. I thought it was a system where I could choose a photo to appear at the side there. I'd really like that feature.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-03-31 15:57

3) you can add this in config.php:

require_once(dirname(__FILE__) . '/modules/core/classes/GalleryCapabilities.class');
GalleryCapabilities::set('link', false);
 
mixel

Joined: 2003-03-15
Posts: 35
Posted: Thu, 2005-03-31 18:54

http://mixelmagic.com/debug.txt - that's it using netPBM - I haven't tried with GD yet. Sorry it's such a big file. I've turned it off debug now so it doesn't carry on growing.

The pictures here didn't work: http://www.mixelmagic.com/gallery/v/art/commissions/kneelers/ - (the jpg did, the gifs and PNGs didn't)

Thanks for all the help. :)

 
mixel

Joined: 2003-03-15
Posts: 35
Posted: Fri, 2005-04-01 09:52

(i regenerated the thumbs from that post with GD so my examples won't work any more, sorry!)

I got it to make a dodgy thumbnail thing under GD though.. (it only seems to happen in GD, at least when netPBM goes wrong it doesn't do any real harm) it's not as bad as the ones which take out an entire page of items, but it shows what i mean..

http://www.mixelmagic.com/gallery/v/art/commissions/ajdlogo/ - then if you try to look at T_mixedwax you get this: http://www.mixelmagic.com/gallery/v/art/commissions/ajdlogo/T_mixedwax.jpg.html - and I can't delete it because a similar blank page happens when I go into the delete option.. So I'd probably delete the whole section.. (or switch to netPBM and reconstruct the thumbs/resized pics would probably work too)

Here's a link to the GD debug, this stuff happened near, or at the end.. Then I turned off logging again to make sure it didn't carry on growing.

Thanks again.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2005-04-04 22:00

I don't see a link to the GD debug that you mentioned. Did you forget to include it?

 
mixel

Joined: 2003-03-15
Posts: 35
Posted: Tue, 2005-04-05 14:13

Oops. :D Thanks. I'm always doing that!
http://www.mixelmagic.com/debug2.txt

I couldn't see anything obvious in it, but I'm rubbish at this stuff.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-04-05 16:16

the last line in the debug output is a Gd operation which probably means Gd bombed on that one..

 
mixel

Joined: 2003-03-15
Posts: 35
Posted: Tue, 2005-04-05 22:13

If that's what's happening every time GD's messing up the thumbnails/resized pics I can make GD bomb pretty easily.. :) If it's a GD issue and not a gallery one I'll leave it be.. The problem didn't happen with Gallery 1.4 when using the same pictures, so I'm a bit flummoxed.

I've had odd problems with other apps because of how westhost sets up their space, hopefully it's nothing serious. I've got quite used to switching between the two graphics libraries frequently to generate the thumbnails now, so if no solution is forthcoming it's not super serious from my point of view. :) Thanks for helping.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2005-04-08 04:55

Yup, I'd say this is a GD issue. Either bump up your memory limit, or switch to NetPBM or ImageMagick...