Hi,
I tried to use ImageMagick with my gallery2 install, unfortunately my provider seems to use a version which doesn't offer all files gallery2 needs. Therefore, I started to install netpbm myself using this ressource
http://sourceforge.net/project/showfiles.php?group_id=7130&package_id=14464
But unfortunately, not all files I need are in there (using the linux alpha package). From the system test:
pnmscale Passed
pnmcut Passed
pnmfile Passed
pnmcomp Passed
pnmflip Passed
jpegtopnm Passed
pnmtojpeg Passed
giftopnm Passed
ppmtogif Passed
ppmquant Passed
pngtopnm Passed
pnmtopng Passed
tifftopnm Passed
pnmtotiff Passed
bmptopnm or bmptoppm Failed Error messages: File does not exist
ppmtobmp Failed Error messages: File does not exist
ppmquant Passed
jhead Failed
I found a jhead file here
http://www.sentex.net/~mwandel/jhead/
but nevertheless which version for linux (?) I tried, it failed every time. Files are chmodded to 755 btw.
Then the text goes
"Although your NetPBM installation is not completely functional, you can still use it for the mime types listed below.
Supported MIME Types
The NetPBM module can support files with the following MIME types:
image/jpeg
image/pjpeg
image/gif
image/png
image/tiff"
But when I try to save the configuration since the mentioned file types are o.k. for me, I can't because of the three missing files. If the installation is not completely functional but I could still use it, what would I have to do to make it work as it is right now? If there're files I should add or replace existing ones with others, I'd be greatful for the urls...
Here's the debug output:
is_dir(/home/www/netsh168/files/netpbm/)
file_exists(/home/www/netsh168/files/netpbm/pnmscale)
Executing: ( "/home/www/netsh168/files/netpbm/pnmscale" "--version" )
2>/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgozxGhI
getParameter exec.expectedStatus for core plugin
file_exists(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgozxGhI)
filesize(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgozxGhI)
fopen(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgozxGhI, r, 0)
feof(Resource id #98)
fgets(Resource id #98, 4096)
feof(Resource id #98)
fgets(Resource id #98, 4096)
feof(Resource id #98)
fgets(Resource id #98, 4096)
feof(Resource id #98)
fgets(Resource id #98, 4096)
feof(Resource id #98)
fgets(Resource id #98, 4096)
feof(Resource id #98)
fgets(Resource id #98, 4096)
feof(Resource id #98)
fclose(Resource id #98)
unlink(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgozxGhI)
Regular Output:
Error Output:
pnmscale: Using libnetpbm from Netpbm Version: Netpbm 10.18.12
pnmscale: Compiled Thu Jun 3 16:38:24 PDT 2004 by user "root"
pnmscale: BSD defined
pnmscale: RGB_ENV='RGBDEF'
pnmscale: RGBENV= 'RGBDEF' (env vbl is unset)
Status: 0 (expected 0)
file_exists(/home/www/netsh168/files/netpbm/pnmcut)
Executing: ( "/home/www/netsh168/files/netpbm/pnmcut" "--version" )
2>/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgGgh6JC
getParameter exec.expectedStatus for core plugin
file_exists(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgGgh6JC)
filesize(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgGgh6JC)
fopen(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgGgh6JC, r, 0)
feof(Resource id #100)
fgets(Resource id #100, 4096)
feof(Resource id #100)
fgets(Resource id #100, 4096)
feof(Resource id #100)
fgets(Resource id #100, 4096)
feof(Resource id #100)
fgets(Resource id #100, 4096)
feof(Resource id #100)
fgets(Resource id #100, 4096)
feof(Resource id #100)
fgets(Resource id #100, 4096)
feof(Resource id #100)
fclose(Resource id #100)
unlink(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgGgh6JC)
Regular Output:
Error Output:
pnmcut: Using libnetpbm from Netpbm Version: Netpbm 10.18.12
pnmcut: Compiled Sat Apr 10 17:07:46 CDT 2004 by user "andrew"
pnmcut: BSD defined
pnmcut: RGB_ENV='RGBDEF'
pnmcut: RGBENV= 'RGBDEF' (env vbl is unset)
Status: 0 (expected 0)
file_exists(/home/www/netsh168/files/netpbm/pnmfile)
Executing: ( "/home/www/netsh168/files/netpbm/pnmfile" "--version" )
2>/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg2FBgdx
getParameter exec.expectedStatus for core plugin
file_exists(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg2FBgdx)
filesize(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg2FBgdx)
fopen(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg2FBgdx, r, 0)
feof(Resource id #102)
fgets(Resource id #102, 4096)
feof(Resource id #102)
fgets(Resource id #102, 4096)
feof(Resource id #102)
fgets(Resource id #102, 4096)
feof(Resource id #102)
fgets(Resource id #102, 4096)
feof(Resource id #102)
fgets(Resource id #102, 4096)
feof(Resource id #102)
fgets(Resource id #102, 4096)
feof(Resource id #102)
fclose(Resource id #102)
unlink(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg2FBgdx)
Regular Output:
Error Output:
pnmfile: Using libnetpbm from Netpbm Version: Netpbm 10.18.12
pnmfile: Compiled Sat Apr 10 17:07:46 CDT 2004 by user "andrew"
pnmfile: BSD defined
pnmfile: RGB_ENV='RGBDEF'
pnmfile: RGBENV= 'RGBDEF' (env vbl is unset)
Status: 0 (expected 0)
file_exists(/home/www/netsh168/files/netpbm/pnmcomp)
Executing: ( "/home/www/netsh168/files/netpbm/pnmcomp" "--version" )
2>/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg2WWaHr
getParameter exec.expectedStatus for core plugin
file_exists(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg2WWaHr)
filesize(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg2WWaHr)
fopen(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg2WWaHr, r, 0)
feof(Resource id #104)
fgets(Resource id #104, 4096)
feof(Resource id #104)
fgets(Resource id #104, 4096)
feof(Resource id #104)
fgets(Resource id #104, 4096)
feof(Resource id #104)
fgets(Resource id #104, 4096)
feof(Resource id #104)
fgets(Resource id #104, 4096)
feof(Resource id #104)
fgets(Resource id #104, 4096)
feof(Resource id #104)
fclose(Resource id #104)
unlink(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg2WWaHr)
Regular Output:
Error Output:
pnmcomp: Using libnetpbm from Netpbm Version: Netpbm 10.18.12
pnmcomp: Compiled Sat Apr 10 17:07:46 CDT 2004 by user "andrew"
pnmcomp: BSD defined
pnmcomp: RGB_ENV='RGBDEF'
pnmcomp: RGBENV= 'RGBDEF' (env vbl is unset)
Status: 0 (expected 0)
file_exists(/home/www/netsh168/files/netpbm/pnmflip)
file_exists(/home/www/netsh168/files/netpbm/jpegtopnm)
Executing: ( "/home/www/netsh168/files/netpbm/jpegtopnm" "--version" )
2>/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgTr0Pbm
getParameter exec.expectedStatus for core plugin
file_exists(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgTr0Pbm)
filesize(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgTr0Pbm)
fopen(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgTr0Pbm, r, 0)
feof(Resource id #106)
fgets(Resource id #106, 4096)
feof(Resource id #106)
fgets(Resource id #106, 4096)
feof(Resource id #106)
fgets(Resource id #106, 4096)
feof(Resource id #106)
fgets(Resource id #106, 4096)
feof(Resource id #106)
fgets(Resource id #106, 4096)
feof(Resource id #106)
fgets(Resource id #106, 4096)
feof(Resource id #106)
fclose(Resource id #106)
unlink(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgTr0Pbm)
Regular Output:
Error Output:
jpegtopnm: Using libnetpbm from Netpbm Version: Netpbm 10.18.12
jpegtopnm: Compiled Sat Apr 10 17:07:46 CDT 2004 by user "andrew"
jpegtopnm: BSD defined
jpegtopnm: RGB_ENV='RGBDEF'
jpegtopnm: RGBENV= 'RGBDEF' (env vbl is unset)
Status: 0 (expected 0)
file_exists(/home/www/netsh168/files/netpbm/pnmtojpeg)
Executing: ( "/home/www/netsh168/files/netpbm/pnmtojpeg" "--version" )
2>/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgY4SeHg
getParameter exec.expectedStatus for core plugin
file_exists(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgY4SeHg)
filesize(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgY4SeHg)
fopen(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgY4SeHg, r, 0)
feof(Resource id #108)
fgets(Resource id #108, 4096)
feof(Resource id #108)
fgets(Resource id #108, 4096)
feof(Resource id #108)
fgets(Resource id #108, 4096)
feof(Resource id #108)
fgets(Resource id #108, 4096)
feof(Resource id #108)
fgets(Resource id #108, 4096)
feof(Resource id #108)
fgets(Resource id #108, 4096)
feof(Resource id #108)
fclose(Resource id #108)
unlink(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgY4SeHg)
Regular Output:
Error Output:
pnmtojpeg: Using libnetpbm from Netpbm Version: Netpbm 10.18.12
pnmtojpeg: Compiled Sat Apr 10 17:07:46 CDT 2004 by user "andrew"
pnmtojpeg: BSD defined
pnmtojpeg: RGB_ENV='RGBDEF'
pnmtojpeg: RGBENV= 'RGBDEF' (env vbl is unset)
Status: 0 (expected 0)
file_exists(/home/www/netsh168/files/netpbm/giftopnm)
Executing: ( "/home/www/netsh168/files/netpbm/giftopnm" "--version" )
2>/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgefWndb
getParameter exec.expectedStatus for core plugin
file_exists(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgefWndb)
filesize(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgefWndb)
fopen(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgefWndb, r, 0)
feof(Resource id #110)
fgets(Resource id #110, 4096)
feof(Resource id #110)
fgets(Resource id #110, 4096)
feof(Resource id #110)
fgets(Resource id #110, 4096)
feof(Resource id #110)
fgets(Resource id #110, 4096)
feof(Resource id #110)
fgets(Resource id #110, 4096)
feof(Resource id #110)
fgets(Resource id #110, 4096)
feof(Resource id #110)
fclose(Resource id #110)
unlink(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgefWndb)
Regular Output:
Error Output:
giftopnm: Using libnetpbm from Netpbm Version: Netpbm 10.18.12
giftopnm: Compiled Sat Apr 10 17:07:46 CDT 2004 by user "andrew"
giftopnm: BSD defined
giftopnm: RGB_ENV='RGBDEF'
giftopnm: RGBENV= 'RGBDEF' (env vbl is unset)
Status: 0 (expected 0)
file_exists(/home/www/netsh168/files/netpbm/ppmtogif)
Executing: ( "/home/www/netsh168/files/netpbm/ppmtogif" "--version" )
2>/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgkkNgK5
getParameter exec.expectedStatus for core plugin
file_exists(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgkkNgK5)
filesize(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgkkNgK5)
fopen(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgkkNgK5, r, 0)
feof(Resource id #112)
fgets(Resource id #112, 4096)
feof(Resource id #112)
fgets(Resource id #112, 4096)
feof(Resource id #112)
fgets(Resource id #112, 4096)
feof(Resource id #112)
fgets(Resource id #112, 4096)
feof(Resource id #112)
fgets(Resource id #112, 4096)
feof(Resource id #112)
fgets(Resource id #112, 4096)
feof(Resource id #112)
fclose(Resource id #112)
unlink(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgkkNgK5)
Regular Output:
Error Output:
ppmtogif: Using libnetpbm from Netpbm Version: Netpbm 10.18.12
ppmtogif: Compiled Sat Apr 10 17:07:46 CDT 2004 by user "andrew"
ppmtogif: BSD defined
ppmtogif: RGB_ENV='RGBDEF'
ppmtogif: RGBENV= 'RGBDEF' (env vbl is unset)
Status: 0 (expected 0)
file_exists(/home/www/netsh168/files/netpbm/ppmquant)
file_exists(/home/www/netsh168/files/netpbm/pngtopnm)
Executing: ( "/home/www/netsh168/files/netpbm/pngtopnm" "--version" )
2>/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgY65Th0
getParameter exec.expectedStatus for core plugin
file_exists(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgY65Th0)
filesize(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgY65Th0)
fopen(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgY65Th0, r, 0)
feof(Resource id #114)
fgets(Resource id #114, 4096)
feof(Resource id #114)
fgets(Resource id #114, 4096)
feof(Resource id #114)
fgets(Resource id #114, 4096)
feof(Resource id #114)
fgets(Resource id #114, 4096)
feof(Resource id #114)
fgets(Resource id #114, 4096)
feof(Resource id #114)
fgets(Resource id #114, 4096)
feof(Resource id #114)
fclose(Resource id #114)
unlink(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgY65Th0)
Regular Output:
Error Output:
pngtopnm: Using libnetpbm from Netpbm Version: Netpbm 10.18.12
pngtopnm: Compiled Sat Apr 10 17:07:46 CDT 2004 by user "andrew"
pngtopnm: BSD defined
pngtopnm: RGB_ENV='RGBDEF'
pngtopnm: RGBENV= 'RGBDEF' (env vbl is unset)
Status: 0 (expected 0)
file_exists(/home/www/netsh168/files/netpbm/pnmtopng)
Executing: ( "/home/www/netsh168/files/netpbm/pnmtopng" "--version" )
2>/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgw52hQU
getParameter exec.expectedStatus for core plugin
file_exists(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgw52hQU)
filesize(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgw52hQU)
fopen(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgw52hQU, r, 0)
feof(Resource id #116)
fgets(Resource id #116, 4096)
feof(Resource id #116)
fgets(Resource id #116, 4096)
feof(Resource id #116)
fgets(Resource id #116, 4096)
feof(Resource id #116)
fgets(Resource id #116, 4096)
feof(Resource id #116)
fgets(Resource id #116, 4096)
feof(Resource id #116)
fgets(Resource id #116, 4096)
feof(Resource id #116)
fclose(Resource id #116)
unlink(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgw52hQU)
Regular Output:
Error Output:
pnmtopng: Using libnetpbm from Netpbm Version: Netpbm 10.18.12
pnmtopng: Compiled Sat Apr 10 17:07:46 CDT 2004 by user "andrew"
pnmtopng: BSD defined
pnmtopng: RGB_ENV='RGBDEF'
pnmtopng: RGBENV= 'RGBDEF' (env vbl is unset)
Status: 0 (expected 0)
file_exists(/home/www/netsh168/files/netpbm/tifftopnm)
Executing: ( "/home/www/netsh168/files/netpbm/tifftopnm" "--version" )
2>/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgoMTppP
getParameter exec.expectedStatus for core plugin
file_exists(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgoMTppP)
filesize(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgoMTppP)
fopen(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgoMTppP, r, 0)
feof(Resource id #118)
fgets(Resource id #118, 4096)
feof(Resource id #118)
fgets(Resource id #118, 4096)
feof(Resource id #118)
fgets(Resource id #118, 4096)
feof(Resource id #118)
fgets(Resource id #118, 4096)
feof(Resource id #118)
fgets(Resource id #118, 4096)
feof(Resource id #118)
fgets(Resource id #118, 4096)
feof(Resource id #118)
fclose(Resource id #118)
unlink(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgoMTppP)
Regular Output:
Error Output:
tifftopnm: Using libnetpbm from Netpbm Version: Netpbm 10.18.12
tifftopnm: Compiled Sat Apr 10 17:07:46 CDT 2004 by user "andrew"
tifftopnm: BSD defined
tifftopnm: RGB_ENV='RGBDEF'
tifftopnm: RGBENV= 'RGBDEF' (env vbl is unset)
Status: 0 (expected 0)
file_exists(/home/www/netsh168/files/netpbm/pnmtotiff)
Executing: ( "/home/www/netsh168/files/netpbm/pnmtotiff" "--version" )
2>/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgXYChZJ
getParameter exec.expectedStatus for core plugin
file_exists(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgXYChZJ)
filesize(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgXYChZJ)
fopen(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgXYChZJ, r, 0)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fclose(Resource id #120)
unlink(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbgXYChZJ)
Regular Output:
Error Output:
pnmtotiff: Using libnetpbm from Netpbm Version: Netpbm 10.18.12
pnmtotiff: Compiled Sat Apr 10 17:07:46 CDT 2004 by user "andrew"
pnmtotiff: BSD defined
pnmtotiff: RGB_ENV='RGBDEF'
pnmtotiff: RGBENV= 'RGBDEF' (env vbl is unset)
Status: 0 (expected 0)
file_exists(/home/www/netsh168/files/netpbm/bmptopnm)
file_exists(/home/www/netsh168/files/netpbm/bmptoppm)
Loading plugin netpbm
netpbm plugin successfully instantiated
file_exists(/home/www/netsh168/files/netpbm/ppmtobmp)
file_exists(/home/www/netsh168/files/netpbm/ppmquant)
is_dir(/home/www/netsh168/files/jhead/)
file_exists(/home/www/netsh168/files/jhead/jhead)
Executing: ( "/home/www/netsh168/files/jhead/jhead" "-V" )
2>/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg5YVYzE
getParameter exec.expectedStatus for core plugin
file_exists(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg5YVYzE)
filesize(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg5YVYzE)
fopen(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg5YVYzE, r, 0)
feof(Resource id #122)
fgets(Resource id #122, 4096)
feof(Resource id #122)
fgets(Resource id #122, 4096)
feof(Resource id #122)
fclose(Resource id #122)
unlink(/home/www/netsh168/html/gallery2/g2data/tmp/g2dbg5YVYzE)
Regular Output:
Error Output:
sh: /home/www/netsh168/files/jhead/jhead: Text file busy
Status: 126 (expected 0)
----
Gallery version: current (dl and installed 2 days ago)
Webserver (with version): Linux 2.4.30
Datatabase (with version): 3.23.49
PHP version (eg 4.2.1): 4.3.10
phpinfo URL (optional): I'd rather not (o.k. per PM)
Graphics Toolkit(s): currently only gd
Operating system: WinXPsp2
Web browser/version: FF 1.0.6
G1 version (for migration bugs): Gallery2RC2
Posts: 32509
you should be able to save the settings like that. of course it would only work for the listed mime types.
@jhead:
weird error, but obviously it doesn't work.
Posts: 25
I was able to save only the first path, entering the correct path to jhead issued an error since the lib wasn't accepted. Nevertheless, I turned of GD since it wasn't able to deal with gifs and left netpbm as the only active toolkit. Rebuilding the thumbnails again didn't work for gifs - my provider told me that I could move to a newer server where gif support is enabled. I guess that's what I'll do sooner or later
Posts: 11
Is this issue a bug?