ImageMagick-6.8.8-3 差分

ImageMagick-6.8.8-2 差分 - yoyaのメモの続き

The latest release of ImageMagick is version 6.8.8-3.

まとめ

  • icon:auto-resize で明示的に(複数の)サイズを指定出来るように
    • 6.8.8-2 で導入された機能だけれど、256,192,128,86,64,48,40,32,24,16 の決め打ちだった。
  • identify で GIF の duration を表示
  • convert foo.jpg foo.json で(identify -verbose で出力するのに似た)メタデータjson で出力。

差分

convert.exe "%input_image%" -define icon:auto-resize=128,64,16 "%output_image%"
identify -verbose rose.gif | grep urat
Duration: 1600
Changeにない差分

Text Direction, Gravity実装を Magick++ に生やしてる

 void Magick::Image::textDirection(DirectionType direction_)
> {
>   modifyImage();
>   options()->textDirection(direction_);
> }
>
> Magick::DirectionType Magick::Image::textDirection(void) const
> {
>   return(constOptions()->textDirection());
> }
>
1459a1463,1473
> void Magick::Image::textGravity(GravityType gravity_)
> {
>   modifyImage();
>   options()->textGravity(gravity_);
> }
>
> Magick::GravityType Magick::Image::textGravity(void) const
> {
>   return(constOptions()->textGravity());
> }
  • JSONImage ?
diff -r ImageMagick-6.8.8-2/magick/static.c ImageMagick-6.8.8-3/magick/static.c
238a239
>   (void) RegisterJSONImage();
422a424
>   UnregisterJSONImage();
diff -r ImageMagick-6.8.8-2/magick/static.h ImageMagick-6.8.8-3/magick/static.h
91a92
>   RegisterJSONImage(void),
251a253
>   UnregisterJSONImage(void),

ChangeLog

2014-01-25  6.8.8-3 Cristy  <quetzlzacatenango@image...>
  * New version 6.8.8-3, SVN revision 14651.

2014-01-18  6.8.8-3 Dirk Lemstra <dirk@snakeware...>
  * Added ResourceLimits class and text direction/gravity to Magick++.
  * Added support for defining dimensions with icon:auto-resize (reference
    http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=24796).

2014-01-16  6.8.8-3 Glenn Randers-Pehrson <glennrp@image...>
  * Added "-define png:swap-bytes" option (reference
    http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=24818).
  * Added image->duration to image.h, calculate duration in gif.c, and
    report duration in identify.c (reference
    http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=23276).

2014-01-15  6.8.8-3 Cristy  <quetzlzacatenango@image...>
  * The -type truecolor option for a grayscale image returns RGB JPEG (reference
    http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=24814).
  * Support JSON coder (.e.g. convert image.jpg image.json).

JSON coder のサポート

$ convert aria.gif aria.json
$ $ cat aria.json
{
  "image": {
    "name": "aria.gif",
    "format": "GIF",
    "formatDescription": "CompuServe graphics interchange format",
    "mimeType": "image/gif",
    "class": "PseudoClass",
    "geometry": {
      "width": "200",
      "height": "150",
      "x": "0",
      "y": "0"
    },
    "units": "Undefined",
    "type": "PaletteAlpha",
    "endianess": "Undefined",
    "colorspace": "sRGB",
    "depth": "8",
    "baseDepth": "8",
    "channelDepth": {
      "alpha": "1",
      "red": "8",
      "green": "8",
      "blue": "8"
    },
    "imageStatistics": {
      "all": {
        "min": "0",
        "max": "255",
        "mean": "132.427",
        "standardDeviation": "56.6756",
        "kurtosis": "9.02892",
        "skewness": "-1.36092"
      }
    },
    "channelStatistics": {
      "alpha": {
        "min": "255",
        "max": "255",
        "mean": "255",
        "standardDeviation": "0",
        "kurtosis": "0",
        "skewness": "0"
      },
      "red": {
        "min": "0",
        "max": "255",
        "mean": "194.946",
        "standardDeviation": "56.8837",
        "kurtosis": "0.799444",
        "skewness": "-1.26294"
      },
      "green": {
        "min": "0",
        "max": "255",
        "mean": "175.556",
        "standardDeviation": "64.5285",
        "kurtosis": "-0.649803",
        "skewness": "-0.616547"
      },
      "blue": {
        "min": "0",
        "max": "255",
        "mean": "159.208",
        "standardDeviation": "73.8161",
        "kurtosis": "-1.27522",
        "skewness": "-0.491547"
      }
    },
    "colormapEntries": "256",
    "colormap": [
          0,  0,  0,255,255,255,255,255,150, 83, 88,255, 41, 27, 28,255,230,176,184,255,
        178,105,118,255, 55, 38, 41,255,214,150,161,255,203,198,199,255, 52, 28, 34,255,
         72, 49, 56,255, 43, 33, 37,255,166,156,160,255,157,124,138,255, 90, 58, 73,255,
        105, 69, 87,255, 19, 17, 18,255,217,215,216,255,120,101,111,255,160,135,159,255,
         90, 86, 90,255,252,244,252,255,244,236,244,255,236,228,236,255,149,148,149,255,
        139,102,142,255,137,126,141,255,168,157,175,255,212,204,217,255,228,220,234,255,
        102, 86,116,255,181,175,186,255,220,212,228,255,191,184,201,255,120,106,142,255,
        140,127,165,255,181,170,201,255,151,139,176,255,220,212,236,255, 83, 69,115,255,
        106, 91,140,255,196,187,218,255,212,204,231,255, 67, 38,142,255, 62, 49, 97,255,
        166,156,191,255, 78, 55,147,255,140,123,189,255,122,109,162,255,135,120,177,255,
        204,196,228,255,157,140,212,255,155,140,204,255,150,136,194,255,166,153,208,255,
        181,171,216,255, 93, 75,159,255, 89, 75,141,255,121,107,176,255,204,196,236,255,
        106, 92,164,255,157,148,199,255,201,197,218,255,204,196,244,255,171,165,201,255,
        172,165,214,255,187,182,218,255,139,133,186,255,196,192,228,255,155,149,212,255,
        188,184,228,255,222,220,244,255,159,156,223,255,134,135,210,255,196,196,236,255,
        204,204,236,255,212,212,236,255,204,204,228,255,220,220,236,255,212,212,228,255,
        233,233,244,255,244,244,252,255,228,228,236,255,180,181,210,255,140,148,220,255,
        160,168,228,255,220,221,228,255,196,204,236,255,204,212,234,255,212,220,237,255,
        196,212,244,255,203,207,212,255,220,228,237,255,212,220,223,255,244,252,252,255,
        236,244,244,255,228,236,236,255,244,252,244,255,204,212,203,255,236,244,233,255,
        228,236,225,255, 96,108, 89,255,244,252,236,255,149,174,114,255,131,145,102,255,
        236,244,220,255,244,252,228,255,244,252,220,255,236,244,200,255,116,120, 98,255,
        244,252,204,255,236,244,185,255,236,244,170,255,170,173,139,255,219,221,167,255,
        231,233,169,255,219,219,151,255,252,252,196,255,244,244,196,255,252,252,204,255,
        244,244,204,255,252,252,212,255,244,244,212,255,252,252,220,255,244,244,220,255,
        252,252,228,255,252,252,236,255,244,244,228,255,252,252,244,255,244,244,236,255,
        236,236,228,255,245,244,186,255,234,233,185,255,246,241,168,255,236,232,198,255,
        235,233,215,255,235,224,149,255,189,180,120,255,217,206,143,255,252,244,196,255,
        204,193,135,255,244,234,186,255,244,236,196,255,252,244,204,255,149,144,121,255,
        244,236,204,255,252,244,212,255,244,229,171,255,217,213,199,255,228,203,123,255,
        172,155,103,255,233,216,169,255, 78, 76, 70,255,216,205,176,255,252,243,220,255,
        244,236,216,255,232,217,183,255,197,141, 34,255,200,153, 59,255,252,233,196,255,
        244,228,196,255,252,236,204,255,252,244,228,255,221,199,159,255,200,129, 18,255,
        179,117, 17,255,139, 94, 20,255,244,216,168,255,252,226,183,255,184,133, 54,255,
        195,141, 60,255,218,169, 93,255,243,200,137,255,228,226,223,255,159,103, 25,255,
        123, 82, 27,255,171,116, 43,255,204,140, 52,255,217,148, 58,255,162,132, 93,255,
        244,204,152,255,203,131, 44,255,182,118, 43,255,212,140, 52,255,196,132, 52,255,
        204,140, 60,255,168,119, 56,255,200,141, 71,255,182,133, 72,255,153,112, 61,255,
        176,137, 90,255,244,217,183,255,230,218,203,255,212,132, 44,255,220,140, 52,255,
        204,132, 52,255,165,107, 44,255,212,140, 60,255,186,122, 53,255,194,131, 62,255,
        139, 93, 44,255,218,149, 70,255,148,100, 48,255,228,164, 95,255,204,149, 85,255,
        166,123, 73,255,196,151,101,255,152,118, 80,255,225,176,119,255,186,156,124,255,
        197,169,138,255,208,181,150,255,229,204,176,255,202,186,168,255,212,132, 52,255,
        197,124, 50,255,220,140, 60,255,204,132, 60,255,212,140, 69,255,220,156, 89,255,
        134, 99, 62,255,190,141, 89,255,214,165,113,255,237,185,132,255,106, 76, 47,255,
         47, 37, 28,255,212,129, 61,255,246,225,207,255,230,151, 90,255,197,156,124,255,
        171,139,115,255,242,202,170,255,112, 95, 82,255,181,173,167,255,216,129, 82,255,
        244,236,232,255, 39, 26, 20,255,189,165,155,255,216,201,195,255,174,147,138,255,
        196,186,183,255,137,118,114,255,200, 48, 36,255,248,144,136,255,248,177,170,255,
        246, 29, 15,255,241, 69, 59,255,235,116,107,255,249,197,195,255,236,227,227,255,
        252,244,244,255,252,252,252,255,244,244,244,255,236,236,236,255, 28, 28, 28,255,
        255,255,255,  0
    ],
    "renderingIntent": "Perceptual",
    "gamma": "0.454545",
    "chromaticity": {
      "redPrimary": {
        "x": "0.64",
        "y": "0.33"
      },
      "greenPrimary": {
        "x": "0.3",
        "y": "0.6"
      },
      "bluePrimary": {
        "x": "0.15",
        "y": "0.06"
      },
      "whitePrimary": {
        "x": "0.3127",
        "y": "0.329"
      }
    },
    "backgroundColor": "black",
    "borderColor": "srgba(223,223,223,1)",
    "matteColor": "grey74",
    "transparentColor": "srgba(255,255,255,0)",
    "interlace": "None",
    "intensity": "Undefined",
    "compose": "Over",
    "pageGeometry": {
      "width": "200",
      "height": "150",
      "x": "0",
      "y": "0"
    },
    "dispose": "Undefined",
    "compression": "LZW",
    "orientation": "Undefined",
    "properties": {
      "date:create": "2013-10-28T18:04:35+09:00",
      "date:modify": "2011-06-22T01:56:21+09:00",
      "signature": "dbb374b023e6ec95dcca2cfeb8750ccd70d484a5945051b5d45b883133323b5e"
    },
    "artifacts": {
      "filename": "aria.gif"
    },
    "tainted": "False",
    "filesize": "4.1KB",
    "numberPixels": "30K",
    "pixelsPerSecond": "0B",
    "userTime": "0.000u",
    "elapsedTime": "0:01.000",
    "version": "ImageMagick 6.8.8-3 Q16 x86_64 2014-01-28 http://www.imagemagick.org"
  }
}