ImageMagick-6.9.2-4差分
ImageMagick-6.9.2-3差分 - yoyaのメモの続き
The latest release of ImageMagick is version 6.9.2-4
まとめ
差分
- Fixed out of bounds error in -splice
- -splice の境界外エラーの修正。
- -sparse-color 用のManhattan Interpolate(補間)メソッドを作成
- https://github.com/ImageMagick/ImageMagick/pull/36
- magick/distort.c
> case ManhattanColorInterpolate:
> {
-
- magick/option.c
> { "Manhattan", ManhattanColorInterpolate, UndefinedOptionFlag, MagickFalse },
-
- www/command-line-options.html
> <dt>manhatten</dt> > <dd>Like voronoi, but resulting polygonal 'cells' are mapped > to fixed coordinate system.</dd>
- null ポインタのアクセス防止
- ヒストグラムコード画像形式の暗黙的な同定
- http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=28412
- magick/histogram.c
> static MagickBooleanType CheckImageColors(const Image *image, > ExceptionInfo *exception,size_t max_colors)
< "Image resolution: %.20g,%.20g",floor(image->x_resolution+0.5), < floor(image->y_resolution+0.5)); < jpeg_info.X_density=(UINT16) floor(image->x_resolution+0.5); < jpeg_info.Y_density=(UINT16) floor(image->y_resolution+0.5); --- > "Image resolution: %.20g,%.20g",image->x_resolution,image->y_resolution); > jpeg_info.X_density=(UINT16) image->x_resolution; > jpeg_info.Y_density=(UINT16) image->y_resolution;
- @image.jp2[0] で完全な画像を、 @image.jp2[1], image.jp2[2]. で独立したタイル画像を読む。
- -caption オプションで @ プレフィックスつきファイル名で失敗する事がなくなった
- https://github.com/ImageMagick/ImageMagick/issues/43
- magick/property.c
> if ((*p == '@') && (IsPathAccessible(p+1) != MagickFalse)) > { 3327,3334c3329,3331 < if (*p == '@') { < p++; < if (*p != '-' && (IsPathAccessible(p) == MagickFalse) ) {
- Honor $XDG_CONFIG_HOME and $XDG_CACHE_HOME
- (訳せないので注釈: 環境変数の XDG_CONFIG_HOME と XDG_CACHE_HOME を見るようにした。OpenCL 周り)
ChangeLogにない差分
- libMagick++ に LevelizeImage、levelizeChannel 追加。
- write_info->magick の初期化。 coders/mask.c, preview.c, thumbnail.c, vid.c
> *write_info->magick='\0';
- coders/png.c で color_image の NULL チェックを削除。(不要だった?)
< if (color_image == (Image *) NULL) < { < assert(alpha_image == (Image *) NULL); < return((Image *) NULL); < } <
- magick/attribute.c
- IdentifyImageGray 追加
> MagickExport ImageType IdentifyImageGray(const Image *image,
> ExceptionInfo *exception)
-
- IdentifyImageMonochrome 追加
> MagickExport MagickBooleanType IdentifyImageMonochrome(const Image *image,
> ExceptionInfo *exception)
-
- IdentifyImageType
> % IdentifyImageType() returns the potential type of image:
> %
> % Bilevel Grayscale GrayscaleMatte
> % Palette PaletteMatte TrueColor
> % TrueColorMatte ColorSeparation ColorSeparationMatte
> MagickExport ImageType IdentifyImageType(const Image *image,
> ExceptionInfo *exception)
- magick/configure.c
- ChangeLog には XDG_CONFIG_HOME が載っているが、それ以外に LOCALAPPDATA, APPDATA も見る事にしてる。HOME より先に。
< home=GetEnvironmentValue("HOME"); --- > home=GetEnvironmentValue("XDG_CONFIG_HOME"); > if (home == (char *) NULL) > home=GetEnvironmentValue("LOCALAPPDATA"); > if (home == (char *) NULL) > home=GetEnvironmentValue("APPDATA");
- magick/constitute.c
- GetNextImageInList(p) が NULL を返す時にセグフォってた。ChangeLog にそれらしいのがある。
< if (p->scene >= GetNextImageInList(p)->scene) --- > { > register Image > *next; > > next=GetNextImageInList(p); > if (next == (Image *) NULL) > break; > if (p->scene >= next->scene) 1312a1320 > }
- magick/module.c
- configure.c と同じ処理
< home=GetEnvironmentValue("HOME"); --- > home=GetEnvironmentValue("XDG_CONFIG_HOME"); > if (home == (char *) NULL) > home=GetEnvironmentValue("LOCALAPPDATA"); > if (home == (char *) NULL) > home=GetEnvironmentValue("APPDATA"); 783a788,799 > if (home != (char *) NULL) > { > /* > Search $XDG_CONFIG_HOME/ImageMagick.
- magick/property.c
< GetImageType(image,&image->exception)); > IdentifyImageType(image,&image->exception)); if (embed_text == (const char *) NULL) < return((char *) NULL); > return(ConstantString(""));
ChangeLog
2015-09-10 6.9.2-4 Cristy <quetzlzacatenango@image...> * New version 6.9.2-4, GIT revision 10273:e00cf21:20151010 2015-10-08 6.9.2-4 Dirk Lemstra <dirk@lem.....org> * Fixed accessing subimage in a TIFF photoshop layer (reference http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=28469). * Fixed out of bounds error in -splice (reference http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=28466). 2015-09-25 6.9.2-4 Eric McConville <emcconville@emccon...> * Created Manhattan Interpolate method for -sparse-color (reference https://github.com/ImageMagick/ImageMagick/pull/36). 2015-09-22 6.9.2-4 Cristy <quetzlzacatenango@image...> * Prevent null pointer access (reference https://github.com/ImageMagick/ImageMagick/pull/34). * Specify histogram code image format implictedly (reference http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=28412). * Don't round up for JPEG image resolution (reference http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=28422). * Read the whole image @ image.jp2[0] or an individual tile @ image.jp2[1], image.jp2[2]. * The -caption option no longer fails for filenames with @ prefix (reference https://github.com/ImageMagick/ImageMagick/issues/43). * Honor $XDG_CONFIG_HOME and $XDG_CACHE_HOME (reference https://github.com/ImageMagick/ImageMagick/issues/44).