Hi,
I am doing a conversion of a jpeg to a png as shown below that creates
a segfault:
$ convert CemlonelyAmishstone-small.jpg CemlonelyAmishstone-small.png
Segmentation fault
However if i issue the same command but converting from jpeg to gif,
that works fine:
$ convert CemlonelyAmishstone-small.jpg CemlonelyAmishstone-small.gig
Even more surprising, the jpeg -> png works fine if i strip the metdata
$ convert -strip CemlonelyAmishstone-small.jpg CemlonelyAmishstone-
small.png
The more surprising thing is that the jpeg metadata don't look
corrupted in any way:
$ identify -verbose CemlonelyAmishstone-small.jpg
Image: CemlonelyAmishstone-small.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 35x50+0+0
Units: PixelsPerInch
Type: TrueColor
Endianess: Undefined
Colorspace: RGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
red:
min: 0 (0)
max: 219 (0.858824)
mean: 111.977 (0.439124)
standard deviation: 49.707 (0.194929)
kurtosis: -0.809236
skewness: -0.326515
green:
min: 0 (0)
max: 212 (0.831373)
mean: 113.971 (0.446945)
standard deviation: 49.6957 (0.194885)
kurtosis: -0.845776
skewness: -0.425301
blue:
min: 0 (0)
max: 202 (0.792157)
mean: 94.3469 (0.369988)
standard deviation: 55.0596 (0.21592)
kurtosis: -1.19008
skewness: -0.273281
Image statistics:
OverAll:
min: 0 (0)
max: 219 (0.858824)
mean: 80.0736 (0.314014)
standard deviation: 64.7193 (0.253801)
kurtosis: -1.46564
skewness: 0.0372872
Rendering intent: Undefined
Interlace: None
Background color: white
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: black
Page geometry: 35x50+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 89
Orientation: TopLeft
Properties:
create-date: 2009-07-28T11:42:50-07:00
exif:Compression: 6
exif:DateTime: 2009:07:14 20:54:07
exif:ExifOffset: 2214
exif:ImageUniqueID: 9E247010E94D44CE8B88EB359774201A
exif:JPEGInterchangeFormat: 4430
exif:JPEGInterchangeFormatLength: 2930
exif:Orientation: 1
exif:ResolutionUnit: 2
exif:WinXP-Keywords: 70, 0, 97, 0, 118, 0, 101, 0, 115, 0, 32, 0,
102, 0, 111, 0, 114, 0, 32, 0, 71, 0, 87, 0, 105, 0, 115, 0, 101, 0,
32, 0, 74, 0, 117, 0, 108, 0, 48, 0, 57, 0, 0, 0
exif:XResolution: 0/1
exif:YResolution: 0/1
jpeg:colorspace: 2
jpeg:sampling-factor: 2x2,1x1,1x1
MicrosoftPhoto:DateAcquired: 2009-07-15T02:50:58Z
modify-date: 2009-07-28T11:42:50-07:00
rdf:Bag:
signature:
fa7b6556f51c1089f08593d764e03c29821fa0e330e6f3a4c26ee9808b8a4694
tiff:Orientation: 1
tiff:software: Microsoft Windows Photo Gallery 6.0.6001.18000
unknown: 77, 105, 99, 114, 111, 115, 111, 102, 116, 32, 87, 105,
110, 100, 111, 119, 115, 32, 80, 104, 111, 116, 111, 32, 71, 97, 108,
108, 101, 114, 121, 32, 54, 46, 48, 46, 54, 48, 48, 49, 46, 49, 56,
48, 48, 48, 0
xmp:creatortool: Microsoft Windows Photo Gallery 6.0.6001.18000
Profiles:
Profile-exif: 7366 bytes
Profile-icc: 58302 bytes
Profile-xmp: 2935 bytes
Artifacts:
verbose: true
Tainted: False
Filesize: 68.6kb
Number pixels: 1.71kb
Version: ImageMagick 6.5.2-9 2009-06-23 Q16 http://
www.imagemagick.org
I attached the image below for reference.
As far as i am concerned i don't mind having to strip the metadata so
this is no big deal but i am happy to improve the quality of that
great piece of software!
S.
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users