Possible bug in convert with grayscale photos

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.
Post Reply
FuzzyThailand
Posts: 2
Joined: 2013-06-19T00:04:28-07:00
Authentication code: 6789

Possible bug in convert with grayscale photos

Post by FuzzyThailand »

Version: ImageMagick 6.8.4-3 2013-03-29 Q16 http://www.imagemagick.org

I'm using this command:

/usr/local/bin/convert IMG_1170.JPG -quality 98 -gravity southeast \
-stroke white -strokewidth 1 \
-pointsize 16 \
-annotate 0 'Image Copyright ... blah blah' \
IMG_1170_a.JPG

And the outcoming image is heavily darkened.

I ran identify before:

Code: Select all

Image: IMG_1170.JPG
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Class: DirectClass
  Geometry: 500x750+0+0
  Resolution: 72x72
  Print size: 6.94444x10.4167
  Units: PixelsPerInch
  Type: Grayscale
  Base type: Grayscale
  Endianess: Undefined
  Colorspace: RGB
  Depth: 8-bit
  Channel depth:
    gray: 8-bit
  Channel statistics:
    gray:
      min: 0 (0)
      max: 198 (0.776471)
      mean: 44.5693 (0.174781)
      standard deviation: 32.1871 (0.126224)
      kurtosis: 1.63964
      skewness: 1.40129
And after:

Code: Select all

Image: IMG_1170_a.JPG
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Class: PseudoClass
  Geometry: 500x750+0+0
  Resolution: 72x72
  Print size: 6.94444x10.4167
  Units: PixelsPerInch
  Type: Grayscale
  Base type: Grayscale
  Endianess: Undefined
  Colorspace: RGB
  Depth: 8-bit
  Channel depth:
    gray: 8-bit
  Channel statistics:
    gray:
      min: 0 (0)
      max: 255 (1)
      mean: 11.4024 (0.0447154)
      standard deviation: 21.8532 (0.085699)
      kurtosis: 57.084
      skewness: 6.24677
The image is available for testing at:

http://img155.imagevenue.com/img.php?im ... _254lo.JPG

I've tested several alternate grayscale photos, with the same result. The images turn out very very dark.

I'd appreciate any kind of assistance a lot as I need these photos for a project of mine.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Possible bug in convert with grayscale photos

Post by magick »

Can you try ImageMagick 6.8.6-0, the current release? It returns the expected results.
FuzzyThailand
Posts: 2
Joined: 2013-06-19T00:04:28-07:00
Authentication code: 6789

Re: Possible bug in convert with grayscale photos

Post by FuzzyThailand »

Hello

That worked, it now looks perfectly! Thanks a lot for the quick response!

Stefan
Post Reply