NetPBM and Thumbnail Issues

511expphoto

Joined: 2008-11-30
Posts: 12
Posted: Fri, 2010-01-08 20:03

Okay, this is getting VERY annoying to me. I've been searching high and low for a straightforward non code answer and nothing on the net seems to help.

I'm using Gallery 2 for event photos through my website. I have checked every effing setting and can't for the life of me figure this out.

Problem one: Thumbnails are ALL broken, no matter how I upload. Whether my FTP server OR from the web browser.

Problem two: So after looking around, I realized that I needed the modules NetPBM and ImageMagick and GD. So I at current have IM and GD working but everytime I test NetPBM, it says the files don't exist. I reinstalled the MODULES but WTF do the binaries go? I steered toward web design so I wouldn't have to deal with programming....can someone give me an answer that works.....?

I currently have NetPBM disabled since it's apparently worthless and not working.

Toolkit Priority is IM then GD

And Gallery was installed via Fantastico

Any help would be GREATLY appreciated....

"
Error I get when testing NetPBM:
is_dir(/usr/bin/)
file_exists(/usr/bin/pnmscale)
Loading plugin netpbm
netpbm plugin successfully instantiated
file_exists(/usr/bin/pnmcut)
file_exists(/usr/bin/pamcut)
file_exists(/usr/bin/pnmfile)
file_exists(/usr/bin/pamfile)
file_exists(/usr/bin/pnmcomp)
file_exists(/usr/bin/pamcomp)
file_exists(/usr/bin/pnmflip)
file_exists(/usr/bin/pamflip)
is_dir(/usr/bin/)
file_exists(/usr/bin/jhead)

NetPBM binary test results
Binary Name Pass/Fail
pnmscale
Failed
Error messages:

File does not exist

pnmcut or pamcut
Failed
Error messages:

File does not exist

pnmfile or pamfile
Failed
Error messages:

File does not exist

pnmcomp or pamcomp
Failed
Error messages:

File does not exist

pnmflip or pamflip
Failed
Error messages:

File does not exist

jhead
Failed
Error messages:

File does not exist
"

 
ictinhuis

Joined: 2010-01-08
Posts: 21
Posted: Fri, 2010-01-08 20:44

Did you create a bin-folder somewhere outside your gallery-root, say one level up?
And did you place all the needed files (NetPBM ánd jhead) in this bin-folder?

Do you use windows or linux as Operating System?

Edit:
By the way, you don't need and GD, and ImageMagick and NetPBM.
Though it is advisable to use more than only GD, you only need one of those.

Personally I use NETPBM as main Image Tool and GD als fallback option.

 
511expphoto

Joined: 2008-11-30
Posts: 12
Posted: Fri, 2010-01-08 20:44

The server I use is Linux.

And no, I let the site create this all for me...you would think that's the entire idea of having something installed.

The only bin folder, which IM, GD and NetPBM are linked to is the one in my main directory. What puzzles me is that IM and GD pass, but NetPBM fails...I checked the bin folder....it's empty...

Hmm?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2010-01-08 20:44

You only need one image toolkit working. Gallery will only use 1. If you have ImageMagick working, uninstall GD and NetPBM and don't look back.

Done. :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
511expphoto

Joined: 2008-11-30
Posts: 12
Posted: Fri, 2010-01-08 20:48
nivekiam wrote:
You only need one image toolkit working. Gallery will only use 1. If you have ImageMagick working, uninstall GD and NetPBM and don't look back.

Done. :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Still leaves one problem. Thumbnails still don't show up. Its going to be used for event photos, so I need thumbs to work.

Idears?

 
ictinhuis

Joined: 2010-01-08
Posts: 21
Posted: Fri, 2010-01-08 20:51

@ 511expphoto
I wonder if Gallery is ment to be out-of-the box, i thought it was merely developed to use
as tweaked and integrated in your site as you like, as I am trying to manage right now on
a site of one of our customers.

You do need to place the neccesary linux binaries in a folder 'bin' you create first yourself.
When you install NetPBM for example, you are asked for this location also by Gallery2 as well
as the location jhead (which i just put in that same bin-folder as the rest).
Do keep in mind that some of these files don't like spaces in the pathname.
I run a Windows 2003 server with apache on it myself, so I don't know if this matters for Linux or not.

@ nivekiam:

Quote:
You only need one image toolkit working. Gallery will only use 1.

If that is the case, can you explain to me why you can set the order in Gallery2
once you installed multiple toolkits?
I was hoping this setup would make sure that resizing and other edits will complete,
even if for some reason the first toolkit wouldnt manage.

 
511expphoto

Joined: 2008-11-30
Posts: 12
Posted: Fri, 2010-01-08 20:55
ictinhuis wrote:
@ 511expphoto
I wonder if Gallery is ment to be out-of-the box, i thought it was merely developed to use
as tweaked and integrated in your site as you like, as I am trying to manage right now on
a site of one of our customers.

You do need to place the neccesary linux binaries in a folder 'bin' you create first yourself.
When you install NetPBM for example, you are asked for this location also by Gallery2 as well
as the location jhead (which i just put in that same bin-folder as the rest).
Do keep in mind that some of these files don't like spaces in the pathname.
I run a Windows 2003 server with apache on it myself, so I don't know if this matters for Linux or not.

@ nivekiam:

Quote:
You only need one image toolkit working. Gallery will only use 1.

If that is the case, can you explain to me why you can set the order in Gallery2
once you installed multiple toolkits?
I was hoping this setup would make sure that resizing and other edits will complete,
even if for some reason the first toolkit wouldnt manage.

Couldn't tell ya. I thought it was meant to be "out of the box", at least in this case. I really only need it so I'm the only one to upload....kind of a site such as ebybk.com. Where people can go on and pull off photos...which also leads me to the trouble of embedding. Still slightly lost...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2010-01-08 20:57
Quote:
If that is the case, can you explain to me why you can set the order in Gallery2
once you installed multiple toolkits?

Something that I don't think ever worked as intended. I'm pretty sure it's never worked as a fallback. Where if one toolkit can't process a file another tries. Maybe if a certain format isn't supported by one toolkit, it will work as intended or perhaps that was the intention. However, if the top priority toolkit can handle the format, JPEG for example, and it fails for what ever reason, that's it, Gallery doesn't try passing that onto another toolkit. Fortunately in G3 you can only have 1 toolkit active at a time. It's simplified life a lot.

ImageMagick can handle as many and more formats as GD or NetPBM and is more widely available. It also doesn't eat into PHP's allotted memory limits like GD does.

Post your system info and a link to phpinfo:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ictinhuis

Joined: 2010-01-08
Posts: 21
Posted: Fri, 2010-01-08 22:08

So you recommend ImageMagic over the other toolkits, if I understand you right?

[OFF TOPIC:]
And can i only use ImageMagick after executed an installer locally on the windows-server
(with Apache running) or can I also place the necessary dll's in the bin and install in through Gallery2 if I have all the needed NT rights on that bin folder?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2010-01-08 21:35

I personally prefer anything over GD. GD is a resource hog and if you're limited on memory it's not good for that. ImageMagick, is what I prefer.

Quote:
And can i only use ImageMagick after executed an installer locally on the windows-server
(with Apache running) or can I also place the necessary dll's in the bin and install in through Gallery2 if I have all the needed NT rights on that bin folder?

I don't understand. What are you running Gallery on?

Quote:
Post your system info and a link to phpinfo:
FAQ: What information is required when I ask for help in the forums?

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
511expphoto

Joined: 2008-11-30
Posts: 12
Posted: Fri, 2010-01-08 22:00

Hmm. So I uploaded a BMP and it showed the thumbnail, then a jpeg and it started working...wtf? ha...hmmm

 
ictinhuis

Joined: 2010-01-08
Posts: 21
Posted: Fri, 2010-01-08 22:24

I created a new post, since my [OFF TOPIC] question is not anymore related to NetPBM and Thumbnail Issues.

Moved it to Gallery 2 Support » General Discussion and Feedback:
Jan. 2010: At this stage, Gallery2 or Gallery3? NetPBM or ImageMagick?

 
ictinhuis

Joined: 2010-01-08
Posts: 21
Posted: Fri, 2010-01-08 22:25

That's weird... Which toolkit is causing that, which one are you using right now?

 
ictinhuis

Joined: 2010-01-08
Posts: 21
Posted: Sun, 2010-01-17 02:04
511expphoto wrote:
Fri, 2010-01-08 21:55
Couldn't tell ya. I thought it was meant to be "out of the box", at least in this case. I really only need it so I'm the only one to upload....kind of a site such as ebybk.com. Where people can go on and pull off photos...which also leads me to the trouble of embedding. Still slightly lost...

And, did you manage to get it up and running the way you wanted to after all?
Just curious..

I am planning to migrate my gallery from the test environment to an embedded version of a customers website one of the upcoming weeks, so I was also wondering where you intended to embed your gallery and if you managed the embedding part.

---------------------------------

Drive By Radio : American Urban
www.drivebyradio.eu

 
ictinhuis

Joined: 2010-01-08
Posts: 21
Posted: Mon, 2010-02-08 21:18

511expphoto sent me a msg, telling me he gave up on embedding the gallery into his website.
Will post my experiences over here when implementing them, for exp and other forum users.

Trying to migrate my gallery installation from a windows-environment to a Solaris webhost...
quite an adventure when it comes to configuring the NetBPM image tool. Any help on that one is very welcome in that post too..

---------------------------------

Facts and Fun :
www.factsandfun.nl