Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
bzv42
Post
by bzv42 » 2008-03-05T04:28:53-07:00
Hi,
when using a
Code: Select all
convert cmyk.jpg -unsharp 3x1 cmyk-s.jpg
a Windows error report dialog appears:
I'm using ImageMagick 6.3.9 02/27/08 Q16 on Windows XP SP2.
Here's some information to the image:
Code: Select all
Image: cmyk.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 2400x1600+0+0
Resolution: 72x72
Print size: 33.3333x22.2222
Units: PixelsPerInch
Type: ColorSeparation
Endianess: Undefined
Colorspace: CMYK
Depth: 8-bit
Channel depth:
Cyan: 8-bit
Magenta: 8-bit
Yellow: 8-bit
Black: 8-bit
Channel statistics:
Cyan:
Min: 0 (0)
Max: 228 (0.894118)
Mean: 79.6344 (0.312292)
Standard deviation: 43.0401 (0.168785)
Magenta:
Min: 0 (0)
Max: 254 (0.996078)
Mean: 23.1468 (0.0907718)
Standard deviation: 36.1198 (0.141646)
Yellow:
Min: 0 (0)
Max: 253 (0.992157)
Mean: 39.7214 (0.15577)
Standard deviation: 31.3851 (0.123079)
Black:
Min: 0 (0)
Max: 238 (0.933333)
Mean: 44.6161 (0.174965)
Standard deviation: 78.6963 (0.308613)
Total ink density: 236%
Rendering intent: Undefined
Interlace: None
Background color: white
Border color: cmyk(223,223,223,0)
Matte color: grey74
Transparent color: black
Page geometry: 2400x1600+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 75
Orientation: TopLeft
Properties:
Exif:ApertureValue: 434176/65536
Exif:ColorSpace: 1
Exif:ComponentsConfiguration: ...
Exif:Compression: 6
Exif:CustomRendered: 0
Exif:DateTime: 2005:11:14 18:05:30
Exif:DateTimeDigitized: 2005:11:14 18:05:30
Exif:DateTimeOriginal: 2005:11:14 18:05:30
Exif:ExifImageLength: 2336
Exif:ExifImageWidth: 3504
Exif:ExifOffset: 234
Exif:ExifVersion: 0221
Exif:ExposureBiasValue: 0/1
Exif:ExposureMode: 1
Exif:ExposureProgram: 1
Exif:ExposureTime: 1/125
Exif:Flash: 16
Exif:FlashPixVersion: 0100
Exif:FNumber: 10/1
Exif:FocalLength: 78/1
Exif:FocalPlaneResolutionUnit: 2
Exif:FocalPlaneXResolution: 3520000/1136
Exif:FocalPlaneYResolution: 2342000/756
Exif:ISOSpeedRatings: 100
Exif:JPEGInterchangeFormat: 9964
Exif:JPEGInterchangeFormatLength: 10239
Exif:Make: Canon
Exif:MakerNote: .
Exif:MeteringMode: 5
Exif:Model: Canon EOS-1D Mark II
Exif:Orientation: 1
Exif:ResolutionUnit: 2
Exif:SceneCaptureType: 0
Exif:ShutterSpeedValue: 458752/65536
Exif:WhiteBalance: 1
Exif:XResolution: 72/1
Exif:YCbCrPositioning: 2
Exif:YResolution: 72/1
Jpeg:colorspace: 4
Jpeg:sampling-factor: 2x2,1x1,1x1,1x1
Signature: 82f98c2f32c81e2f6e64ac5002a23a4de36f2fe5c30d24c7656eb4911eae9c28
Profiles:
Profile-exif: 20209 bytes
Profile-icc: 718672 bytes
ISOnewspaper26v4
Artifacts:
Verbose: true
Tainted: False
Filesize: 1.06905mb
Number pixels: 3.66211mb
Pixels per second: 19.4793mb
User time: 0.188u
Elapsed time: 0:01
Version: ImageMagick 6.3.9 02/27/08 Q16 http://www.imagemagick.org
Guido
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2008-03-05T08:31:10-07:00
We cannot reproduce the exception you posted. Perhaps the problem is specific to your image. Post a URL to your image so we can download and inspect it.
bzv42
Post
by bzv42 » 2008-03-06T04:36:07-07:00
You can find the image here:
http://rz-home.de/~gus/temp/test-cmyk.jpg
This image is a CMYK image created from an RGB image by the following IM command:
Code: Select all
convert test.jpg +profile icm -profile sRGB.icc -profile ISOnewspaper26v4.icc test-cmyk.jpg
Guido
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2008-03-06T08:27:55-07:00
The conversion works for us under Windows and Linux. We're using ImageMagick 6.3.9-1, the current release.
bzv42
Post
by bzv42 » 2008-03-06T08:48:01-07:00
Yes, I'm using the same release and everytime (!) I do a
Code: Select all
convert test-cmyk.jpg -unsharp 3x1 test-cmyk-s.jpg
I'll get the error posted above.
Are there any other dlls ImageMagick depends on?
Guido
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2008-03-06T08:58:11-07:00
Add -debug trace,all to your command line and post the last 100 lines or so here. That will tell us where in the code ImageMagick is faulting.
bzv42
Post
by bzv42 » 2008-03-06T09:59:22-07:00
Here are the last 100 lines of the debug output:
Code: Select all
2008-03-06T17:17:17+01:00 4:20 257.829u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.829u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.829u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.829u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/AcquireCacheNexus/392/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/DestroyCacheNexus/2222/Trace
test-cmyk.jpg[0]
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/GetImagePixels/2670/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/GetCacheNexus/2561/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetCacheNexus/4208/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/ModifyCache/3341/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SyncCache/4545/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/SetNexus/4407/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/ReadCachePixels/3962/Trace
test-cmyk.jpg[0]
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Cache convert[408]: cache.c/ReadCachePixels/3970/Cache
test-cmyk.jpg[0][1x1600+1792+0]
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/ReadCacheIndexes/3831/Trace
test-cmyk.jpg[0]
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Cache convert[408]: cache.c/ReadCacheIndexes/3842/Cache
test-cmyk.jpg[0][1x1600+1792+0]
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache-view.c/AcquireCacheViewIndexes/109/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/GetIndexes/2714/Trace
test-cmyk.jpg
2008-03-06T17:17:17+01:00 4:20 257.844u 6.3.9 Trace convert[408]: cache.c/GetIndexesFromCache/2755/Trace
test-cmyk.jpg
Guido
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2008-03-06T10:22:21-07:00
Next try this command:
convert cmyk.jpg -unsharp 3x1+1.0+0.05 test.jpg
If that fails, we are currently stumped on what the problem may be. The only thing we can think of is that ImageMagick is running in a non US locale and it is causing the parser to get confused perhaps because German numbers accept comma as decimal places.
If you have access to a Linux box, try your command there and see if the problem persists.
bzv42
Post
by bzv42 » 2008-03-07T01:31:25-07:00
The following commands fail with the same error:
Code: Select all
convert cmyk.jpg -unsharp 3x1+1.0+0.05 test.jpg
convert cmyk.jpg -unsharp 3x1+1,0+0,05 test.jpg
But -unsharp 3x1 works fine with the RGB version of cmyk.jpg.
Guido
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2008-03-07T07:46:14-07:00
Unless we can reproduce the problem we can't help. We ran your command with a memory debugger and no complaints were issued. The only hope for a fix would be if you ran the Windows debugger and tracked down the problem for us.
bzv42
Post
by bzv42 » 2008-03-07T08:39:06-07:00
I just tested it on another Windows XP PC: same result.
I just tested it with the new 6.3.9-2 release: same result.
If you can give me some instructions on how to debug this I'd like to help.
Guido
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2008-03-07T18:57:52-07:00
Thanks for the problem report. We have a fix for the unsharp mask operation for CMYK images in ImageMagick 6.3.9-3.
bzv42
Post
by bzv42 » 2008-03-19T02:00:54-07:00
I just tested it with 6.3.9-5 (I was too late for 6.3.9-3
)
It works fine now.