Page 1 of 1

Possible bug in convert with grayscale photos

Posted: 2013-06-19T05:11:15-07:00
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.

Re: Possible bug in convert with grayscale photos

Posted: 2013-06-19T05:27:20-07:00
by magick
Can you try ImageMagick 6.8.6-0, the current release? It returns the expected results.

Re: Possible bug in convert with grayscale photos

Posted: 2013-06-19T07:16:21-07:00
by FuzzyThailand
Hello

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

Stefan