Hi, i meet strange problem, When I use ImageMagick from perl script, i get such status error:
Exception 325: Corrupt JPEG data: premature end of data segment `/var/www/livemix.org/tmp/22.JPG' but command line tools works OK. Any ideas? Thanks. Quote: # convert -verbose 22.JPG 123.png 22.JPG JPEG 1024x768 1024x768+0+0 DirectClass 1e+02kb writing raw profile: type=app12, length=15 22.JPG=>123.png JPEG 1024x768 1024x768+0+0 DirectClass 6e+02kb 0.960u 0:02 Quote: # identify -verbose 22.JPG Image: 22.JPG Format: JPEG (Joint Photographic Experts Group JFIF format) Geometry: 1024x768 Class: DirectClass Type: TrueColor Endianess: Undefined Colorspace: RGB Channel depth: Red: 8-bits Green: 8-bits Blue: 8-bits Channel statistics: Red: Min: 0 (0) Max: 255 (1) Mean: 104.833 (0.411109) Standard deviation: 58.8372 (0.230734) Green: Min: 0 (0) Max: 255 (1) Mean: 94.2835 (0.369739) Standard deviation: 45.7752 (0.17951) Blue: Min: 0 (0) Max: 255 (1) Mean: 90.5234 (0.354994) Standard deviation: 44.8783 (0.175993) Colors: 122322 Rendering-intent: Undefined Resolution: 100x100 Units: Undefined Filesize: 1e+02kb Interlace: None Background Color: white Border Color: #DFDFDF Matte Color: grey74 Page geometry: 1024x768+0+0 Dispose: Undefined Iterations: 0 Compression: JPEG Quality: 86 Orientation: Undefined JPEG-Colorspace: 2 JPEG-Sampling-factors: 1x1,1x1,1x1 Signature: b424c4cb361d503c5cd8896a0a6e4208ede8acbaa4671fdf3cf7b9c06330a683 Profile-app12: 15 bytes 0x00000000: 75636b79 00010004 0000003c 000045 Ducky-------<-- Tainted: False Version: ImageMagick 6.2.5 03/11/07 Q16 http://www.imagemagick.org Code: --cut -- my $image = Image::Magick->new(); print "<br> reading /var/www/livemix.org/tmp/22.JPG <br>"; my $status = $image->Read("/var/www/livemix.org/tmp/22.JPG"); print "Reading Error: $status \n" if $status; --cut-- _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
