Gallery version: v1.5.2
Apache version: 2.0.55
PHP version: PHP4.4.2
Graphics Toolkit:
NetPBM/Gallery micro distribution, version 1.4-pl1
jpegtran - 6b ( think thats what it is.)
ImageMagick version 6.2.6
Operating system: Windows xp
Hiya guys, experiencing a little weirdness here that someone might be able to explain. I just set up this gallery + apache install on a Windows xp box and everything seems to work okay. I'm able to upload normal sized images, create albums, edit the config, etc.
The problem happens when I'm trying to upload images with rather large dimensions 7200x4800 for example. The file sizes are not extreme, 1.2 megabytes on average... and I have edited my php.ini file to fully accept posts & file uploads of 12 megs+.
I performed an experiment to see at what threshold my gallery would stop posting images that I've uploaded. With the original 7200x4800 image(1.14 MB (1,203,712 bytes),) I scaled it down to these sizes,
110.jpg - 7200 x 4800 -
100.jpg - 6900 x 4600 -
90.jpg - 6600 x 4400 -
80.jpg - 6300 x 4200 -
70.jpg - 6000 x 4000 -
60.jpg - 5700 x 3800 -
50.jpg - 5400 x 3600 -
40.jpg - 5100 x 3400 - FAILS
30.jpg - 4800 x 3200 - WORKS
20.jpg - 4500 x 3000 - WORKS
10.jpg - 4200 x 2800 - WORKS
(I used Gimp to scale the image and save each at 100% quality.... the file size increases dramatically over the original. Even the rescaled images that did successfully upload(WORKS) were roughly 4 times the size ( 4.25 MB (4,462,080 bytes)) So, file size doesn't seem to be the issue here.
But for some reason it fails when passing 4800x3200 pixels and I can't figure out for the life of me *why* ..
Posts: 8
BTW, here is the debug log from when I tried to upload 40.jpg... not sure if this helps because I can't see anything in there that strikes me as unusual, but maybe I don't see it.
================================================
40.jpg
================================================
Processing status...
util.php::988 -> Processing file: e:\tmp\php29.tmp
******Adding 40.jpg*****
Album.php::1161 -> Doing the naming
Album.php::1194 -> Image Preprocessing
Album.php::1199 -> Resizing/compressing original image
imageManipulation.php::36 -> Resizing Image: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.jpg
util.php::794 -> extension of file 40_G.jpg is jpg
util.php::206 -> Getting Dimension of file: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.jpg
util.php::216 -> Dimensions: x: 5100 y: 3400
imageManipulation.php::67 -> No resizing required
imageManipulation.php::573 -> File E:/dir/A G/Apache2/photos/html/albums/album01/40_G.jpg type 2.
util.php::206 -> Getting Dimension of file: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.jpg
util.php::216 -> Dimensions: x: 5100 y: 3400
AlbumItem.php::619 -> Generating thumbnail.
AlbumItem.php::622 -> Saved Dimensions: x:5100 y: 3400
util.php::206 -> Getting Dimension of file: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.jpg
util.php::216 -> Dimensions: x: 5100 y: 3400
imageManipulation.php::538 -> Generating squared Version to 190px
imageManipulation.php::474 -> Cropping Image
util.php::794 -> extension of file 40_G.jpg is jpg
util.php::154 -> Executing: E:\imageutils\netpbm\jpegtopnm "E:\Program Files\Apache Group\Apache2\photos\html\albums\album01\40_G.jpg" | E:\imageutils\netpbm\pnmcut 850 0 3400 3400 | E:\imageutils\netpbm\pnmtojpeg --quality=85 > "E:\Program Files\Apache Group\Apache2\photos\html\albums\album01\40_G.thumb.jpg"
Results:
none
Debug messages:
Status: 0 (expected 0)Source
util.php::206 -> Getting Dimension of file: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.jpg
util.php::216 -> Dimensions: x: 5100 y: 3400
Dest
util.php::206 -> Getting Dimension of file: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.thumb.jpg
util.php::216 -> Dimensions: x: 3400 y: 3400
imageManipulation.php::36 -> Resizing Image: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.thumb.jpg
util.php::794 -> extension of file 40_G.thumb.jpg is jpg
util.php::206 -> Getting Dimension of file: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.thumb.jpg
util.php::216 -> Dimensions: x: 3400 y: 3400
imageManipulation.php::683 -> Compressing image: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.thumb.jpg
util.php::794 -> extension of file 40_G.thumb.jpg is jpg
util.php::154 -> Executing: E:\imageutils\netpbm\jpegtopnm "E:\Program Files\Apache Group\Apache2\photos\html\albums\album01\40_G.thumb.jpg" | E:\imageutils\netpbm\pnmscale -xysize 190 190 | E:\imageutils\netpbm\pnmtojpeg --quality=50 > "E:\Program Files\Apache Group\Apache2\photos\html\albums\album01\40_G.thumb.jpg.tmp"
Results:
none
Debug messages:
Status: 0 (expected 0)
util.php::206 -> Getting Dimension of file: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.thumb.jpg
util.php::216 -> Dimensions: x: 190 y: 190
util.php::206 -> Getting Dimension of file: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.thumb.jpg
util.php::216 -> Dimensions: x: 190 y: 190
util.php::154 -> Executing: E:\imageutils\exiftags.exe -au C:\WINDOWS\TEMP\gal2C.tmp
Results:
none
Debug messages:
Status: 1 (expected 0)
- Resizing 40_G
imageManipulation.php::36 -> Resizing Image: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.jpg
util.php::794 -> extension of file 40_G.jpg is jpg
util.php::206 -> Getting Dimension of file: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.jpg
util.php::216 -> Dimensions: x: 5100 y: 3400
imageManipulation.php::683 -> Compressing image: E:/dir/A G/Apache2/photos/html/albums/album01/40_G.jpg
util.php::794 -> extension of file 40_G.jpg is jpg
util.php::154 -> Executing: E:\imageutils\netpbm\jpegtopnm "E:\Program Files\Apache Group\Apache2\photos\html\albums\album01\40_G.jpg" | E:\imageutils\netpbm\pnmscale -xysize 700 700 | E:\imageutils\netpbm\pnmtojpeg --quality=85 > "E:\Program Files\Apache Group\Apache2\photos\html\albums\album01\40_G.sized.jpg"
Posts: 2254
Try running the jpegtopnm program manually from the command line and see what it tells you.
Posts: 8
Hmmm, well I just discovered something interesting. It is creating the thumbnail and resized image of all the files I'm uploading, as I just checked the album directory.
02/04/2006 12:04 AM 4,462,015 30_G.jpg
02/04/2006 12:05 AM 48,344 30_G.sized.jpg
02/04/2006 12:05 AM 5,130 30_G.thumb.jpg
02/04/2006 12:05 AM 5,308,842 40_G.jpg
02/04/2006 12:56 AM 48,499 40_G.sized.jpg
02/04/2006 12:06 AM 5,142 40_G.thumb.jpg
02/04/2006 12:58 AM 5,784,600 50_G.jpg
02/04/2006 12:59 AM 48,560 50_G.sized.jpg
02/04/2006 12:59 AM 5,139 50_G.thumb.jpg
02/04/2006 01:00 AM 6,376,687 60_G.jpg
02/04/2006 01:00 AM 48,597 60_G.sized.jpg
02/04/2006 01:00 AM 5,143 60_G.thumb.jpg
(all the images load up fine in Picasa...)
I ran that command you suggested, here is the output...
----------------------------------------------------
E:\dir\A G\Apache2\photos\html\albums\album01> E:\imageutils\netpbm\jpegtopnm "E:\dir\A G\Apache2\photos\html\albums\album0
1\70_G.jpg" | E:\imageutils\netpbm\pnmscale -xysize 700 700 | E:\imageutils\netp
bm\pnmtojpeg --quality=85 > "E:\dir\Apache Group\Apache2\photos\html\a
lbums\album01\70_G.sized.jpg"
E:\imageutils\netpbm\jpegtopnm: WRITING PPM FILE
E:\dir\A G\Apache2\photos\html\albums\album01>
-------------------------------------------------------
Posts: 2254
is "E:\dir\Apache Group\Apacha2\photos\html\albums\album01\70_G.sized.jpg" the resized image of the original that it should be?
Posts: 8
Yep
Posts: 2254
how about running exiftags manually on a problem image?
Posts: 8
E:\imageutils>exiftags.exe "e:\dir\A G\Apache2\photos\html\al
bums\album01\70_G.jpg"
exiftags.exe: couldn't find Exif data
E:\imageutils>exiftags.exe "e:\dir\A G\Apache2\photos\html\al
bums\album01\70_G.sized.jpg"
exiftags.exe: couldn't find Exif data
E:\imageutils>exiftags.exe "e:\dir\A G\Apache2\photos\html\al
bums\album01\70_G.thumb.jpg"
exiftags.exe: couldn't find Exif data
They shouldn't have any exif data though, afaik. I scanned them from the negatives myself.
Posts: 2254
maybe try disabling exif tag scanning and try uploading again. It make be taking too long or taking up too much memory.