Rotate Problems

sticky

Joined: 2005-01-01
Posts: 4
Posted: Sat, 2005-01-01 07:44

<neurosis must be setting in - 15 mins till New Years, and I'm posting on the Gallery Boards...>

I've setup a new gallery install today, (using latest gallery) and rotate is a bit non-functional for me. When I upload images from my camera (5mp the image is 2592x1944) they don't rotate at all. I get a message that the rotation was fine if I'm not in debug mode, but the image goes to the "broken" image.

Now I've uploaded a few other images (jpgs as well), and they *do* rotate fine, though they're MUCH smaller resolution.

When I put it into debug mode in the config.php the output is rather large, so I'm not sure exactly which part of it you would want. I *can* paste the whole thing, but again, it's large.

I've also tried upping the resource limits in the php.ini to

max_execution_time = 90
max_input_time = 90
memory_limit = 256M

So I don't *think* it's a resource problem.

Thanks MUCH for any help.

Brian

----

Gallery URL (maybe later):
Gallery version: G2
Hosted on Powweb
Graphics Toolkit(s): NetPBM
Operating system: XP
Web browser/version: Firefox 1.0

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-01-01 17:00

you can look through the debug output for where it does exec calls to the netpbm binaries and see what output it gives.. or post a link to the full output.

 
sticky

Joined: 2005-01-01
Posts: 4
Posted: Sat, 2005-01-01 17:25

After a few hours sleep (and realizing that using the find function would be much easier than looking through all those pages of output would be easier - imagine that...) I located the error. Dunno how to fix it though <wink>

Regular Output:
Error Output:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LC_ALL = (unset),
	LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
pamflip: Out of memory allocating space for a tuple row of
1944 tuples by 3 samples per tuple by 4 bytes per sample.
ppmtojpeg: Error reading magic number from Netpbm image stream.  Most
often, this means your input file is empty.
jpegtopnm: Error writing single byte sample to file
Status: 1 (expected 0)
unlink(/www/t/thepath/g2data/tmp/npbm_zEVZ7g)
copy(/www/t/thepath/htdocs/gallery/modules/core/classes/../data/broken-image.gif,
/www/t/thepath/g2data/cache/derivative/0/4/41.dat)
filesize(/www/t/thepath/g2data/cache/derivative/0/4/41.dat)

Thanks again for any help...

Brian

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2005-01-03 06:14

This appears to be an issue with NetPBM itself. What version of NetPBM are you using? Eg:

$ pnmflip -version
pnmflip: Using libpbm from Netpbm Version: Netpbm 10.0
pnmflip: BSD defined
pnmflip: RGB_ENV='RGBDEF'
pnmflip: RGBENV= 'RGBDEF' (env vbl is unset)

If you're using an older version of NetPBM, you might try upgrading. You can also try using ImageMagick instead...

 
sticky

Joined: 2005-01-01
Posts: 4
Posted: Wed, 2005-01-05 01:55
bharat wrote:
This appears to be an issue with NetPBM itself. What version of NetPBM are you using?...If you're using an older version of NetPBM, you might try upgrading. You can also try using ImageMagick instead...

10.17 is what's installed. I guess I'll have to try IM....

Brian

 
sticky

Joined: 2005-01-01
Posts: 4
Posted: Wed, 2005-01-05 17:01

Found this in the 10.18 changelog (10.18.18 is the latest stable version as of now):

Quote:
Allocate rows individually if can't get all rows in a single
memory block.

Looks like that might, hopefully, address my error - and I've sent an email to the PowWeb admins asking them to move to the current stable NetPBM version.

Brian