Changeset 7046
- Timestamp:
- 03/04/12 17:07:58 (15 months ago)
- Location:
- ImageMagick/branches/ImageMagick-6.7.5
- Files:
-
- 10 edited
-
ChangeLog (modified) (1 diff)
-
ImageMagick.spec (modified) (1 diff)
-
coders/caption.c (modified) (12 diffs)
-
config/configure.xml (modified) (1 diff)
-
configure (modified) (9 diffs)
-
configure.ac (modified) (1 diff)
-
libtool (modified) (1 diff)
-
magick/magick-config.h (modified) (3 diffs)
-
magick/version.h (modified) (1 diff)
-
version.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/branches/ImageMagick-6.7.5/ChangeLog
r7044 r7046 1 1 2012-03-02 6.7.5-9 Cristy <quetzlzacatenango@image...> 2 * New version 6.7.5-9, SVN revision 704 3.2 * New version 6.7.5-9, SVN revision 7046. 3 3 4 4 2012-02-29 6.7.5-9 Cristy <quetzlzacatenango@image...> 5 5 * Caption no long includes the prefix "caption:" in the rendered text. 6 * Auto scale pointsize for -size 100x100 caption: 6 7 7 8 2012-03-02 6.7.5-8 Cristy <quetzlzacatenango@image...> -
ImageMagick/branches/ImageMagick-6.7.5/ImageMagick.spec
r7045 r7046 1 1 %global VERSION 6.7.5 2 %global Patchlevel 102 %global Patchlevel 9 3 3 4 4 Name: ImageMagick -
ImageMagick/branches/ImageMagick-6.7.5/coders/caption.c
r7042 r7046 110 110 } 111 111 112 static Image *ReadCAPTIONImage(const ImageInfo *image_info,113 ExceptionInfo *exception)112 static MagickBooleanType PangoImage(const ImageInfo *image_info,Image *image, 113 const DrawInfo *draw_info,ExceptionInfo *exception) 114 114 { 115 115 char … … 120 120 *option; 121 121 122 DrawInfo123 *draw_info;124 125 122 FT_Bitmap 126 123 *canvas; 127 124 128 Image129 *image;130 131 125 PangoAlignment 132 126 align; … … 165 159 y; 166 160 167 /*168 Initialize Image structure.169 */170 assert(image_info != (const ImageInfo *) NULL);171 assert(image_info->signature == MagickSignature);172 if (image_info->debug != MagickFalse)173 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",174 image_info->filename);175 assert(exception != (ExceptionInfo *) NULL);176 assert(exception->signature == MagickSignature);177 image=AcquireImage(image_info);178 (void) ResetImagePage(image,"0x0+0+0");179 161 /* 180 162 Get context. … … 190 172 if (option != (const char *) NULL) 191 173 pango_context_set_language(context,pango_language_from_string(option)); 192 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL);193 174 pango_context_set_base_dir(context,draw_info->direction == 194 175 RightToLeftDirection ? PANGO_DIRECTION_RTL : PANGO_DIRECTION_LTR); … … 264 245 description=pango_font_description_from_string(draw_info->font == 265 246 (char *) NULL ? "helvetica" : draw_info->font); 266 pango_font_description_set_size(description,PANGO_SCALE*draw_info->pointsize); 247 pango_font_description_set_size(description,(int) (0.9*PANGO_SCALE* 248 draw_info->pointsize+0.5)); 267 249 pango_layout_set_font_description(layout,description); 268 250 pango_font_description_free(description); … … 318 300 canvas=(FT_Bitmap *) AcquireMagickMemory(sizeof(*canvas)); 319 301 if (canvas == (FT_Bitmap *) NULL) 320 { 321 draw_info=DestroyDrawInfo(draw_info); 322 ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); 323 } 302 ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed", 303 image->filename); 324 304 canvas->width=image->columns; 325 305 canvas->pitch=(canvas->width+3) & ~3; … … 329 309 if (canvas->buffer == (unsigned char *) NULL) 330 310 { 331 draw_info=DestroyDrawInfo(draw_info);332 311 canvas=(FT_Bitmap *) RelinquishMagickMemory(canvas); 333 ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); 312 ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed", 313 image->filename); 334 314 } 335 315 canvas->num_grays=256; … … 344 324 if (SetImageBackgroundColor(image) == MagickFalse) 345 325 { 346 draw_info=DestroyDrawInfo(draw_info);347 326 canvas->buffer=(unsigned char *) RelinquishMagickMemory(canvas->buffer); 348 327 canvas=(FT_Bitmap *) RelinquishMagickMemory(canvas); 349 328 caption=DestroyString(caption); 350 329 image=DestroyImageList(image); 351 return( (Image *) NULL);330 return(MagickFalse); 352 331 } 353 332 p=canvas->buffer; … … 381 360 Relinquish resources. 382 361 */ 383 draw_info=DestroyDrawInfo(draw_info);384 362 canvas->buffer=(unsigned char *) RelinquishMagickMemory(canvas->buffer); 385 363 canvas=(FT_Bitmap *) RelinquishMagickMemory(canvas); 386 364 caption=DestroyString(caption); 387 return( GetFirstImageInList(image));365 return(MagickTrue); 388 366 } 389 #else 367 #endif 368 390 369 static Image *ReadCAPTIONImage(const ImageInfo *image_info, 391 370 ExceptionInfo *exception) … … 397 376 398 377 const char 399 *gravity; 378 *gravity, 379 *option; 400 380 401 381 DrawInfo … … 436 416 */ 437 417 property=InterpretImageProperties(image_info,image,image_info->filename); 418 option=GetImageOption(image_info,"filename"); 419 if (option == (const char *) NULL) 420 property=InterpretImageProperties(image_info,image,image_info->filename); 421 else 422 if (LocaleNCompare(option,"caption:",8) == 0) 423 property=InterpretImageProperties(image_info,image,option+8); 424 else 425 property=InterpretImageProperties(image_info,image,option); 438 426 (void) SetImageProperty(image,"caption",property); 439 427 property=DestroyString(property); … … 524 512 draw_info->geometry=AcquireString(geometry); 525 513 } 526 (void) AnnotateImage(image,draw_info); 514 #if defined(MAGICKCORE_PANGOFT2_DELEGATE) 515 status=PangoImage(image_info,image,draw_info,exception); 516 #else 517 status=AnnotateImage(image,draw_info,exception); 518 #endif 527 519 draw_info=DestroyDrawInfo(draw_info); 528 520 caption=DestroyString(caption); 521 if (status == MagickFalse) 522 { 523 image=DestroyImageList(image); 524 return((Image *) NULL); 525 } 529 526 return(GetFirstImageInList(image)); 530 527 } 531 #endif532 528 533 529 /* -
ImageMagick/branches/ImageMagick-6.7.5/config/configure.xml
r7045 r7046 10 10 <configure name="VERSION" value="6.7.5"/> 11 11 <configure name="LIB_VERSION" value="0x675"/> 12 <configure name="LIB_VERSION_NUMBER" value="6,7,5, 10"/>12 <configure name="LIB_VERSION_NUMBER" value="6,7,5,9"/> 13 13 <configure name="SVN_REVISION" value="7029" /> 14 14 <configure name="RELEASE_DATE" value="2012-03-04"/> -
ImageMagick/branches/ImageMagick-6.7.5/configure
r7045 r7046 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.68 for ImageMagick 6.7.5- 10.3 # Generated by GNU Autoconf 2.68 for ImageMagick 6.7.5-9. 4 4 # 5 5 # Report bugs to <http://www.imagemagick.org>. … … 575 575 PACKAGE_NAME='ImageMagick' 576 576 PACKAGE_TARNAME='ImageMagick' 577 PACKAGE_VERSION='6.7.5- 10'578 PACKAGE_STRING='ImageMagick 6.7.5- 10'577 PACKAGE_VERSION='6.7.5-9' 578 PACKAGE_STRING='ImageMagick 6.7.5-9' 579 579 PACKAGE_BUGREPORT='http://www.imagemagick.org' 580 580 PACKAGE_URL='' … … 1741 1741 # This message is too long to be a string in the A/UX 3.1 sh. 1742 1742 cat <<_ACEOF 1743 \`configure' configures ImageMagick 6.7.5- 10to adapt to many kinds of systems.1743 \`configure' configures ImageMagick 6.7.5-9 to adapt to many kinds of systems. 1744 1744 1745 1745 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1816 1816 if test -n "$ac_init_help"; then 1817 1817 case $ac_init_help in 1818 short | recursive ) echo "Configuration of ImageMagick 6.7.5- 10:";;1818 short | recursive ) echo "Configuration of ImageMagick 6.7.5-9:";; 1819 1819 esac 1820 1820 cat <<\_ACEOF … … 2035 2035 if $ac_init_version; then 2036 2036 cat <<\_ACEOF 2037 ImageMagick configure 6.7.5- 102037 ImageMagick configure 6.7.5-9 2038 2038 generated by GNU Autoconf 2.68 2039 2039 … … 3078 3078 running configure, to aid debugging if configure makes a mistake. 3079 3079 3080 It was created by ImageMagick $as_me 6.7.5- 10, which was3080 It was created by ImageMagick $as_me 6.7.5-9, which was 3081 3081 generated by GNU Autoconf 2.68. Invocation command line was 3082 3082 … … 4101 4101 # Define the identity of the package. 4102 4102 PACKAGE='ImageMagick' 4103 VERSION='6.7.5- 10'4103 VERSION='6.7.5-9' 4104 4104 4105 4105 … … 36481 36481 # values after options handling. 36482 36482 ac_log=" 36483 This file was extended by ImageMagick $as_me 6.7.5- 10, which was36483 This file was extended by ImageMagick $as_me 6.7.5-9, which was 36484 36484 generated by GNU Autoconf 2.68. Invocation command line was 36485 36485 … … 36547 36547 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 36548 36548 ac_cs_version="\\ 36549 ImageMagick config.status 6.7.5- 1036549 ImageMagick config.status 6.7.5-9 36550 36550 configured by $0, generated by GNU Autoconf 2.68, 36551 36551 with options \\"\$ac_cs_config\\" -
ImageMagick/branches/ImageMagick-6.7.5/configure.ac
r7045 r7046 20 20 m4_define([magick_minor_version], [7]) 21 21 m4_define([magick_micro_version], [5]) 22 m4_define([magick_patchlevel_version], [ 10])22 m4_define([magick_patchlevel_version], [9]) 23 23 m4_define([magick_version], 24 24 [magick_major_version.magick_minor_version.magick_micro_version-magick_patchlevel_version]) -
ImageMagick/branches/ImageMagick-6.7.5/libtool
r7045 r7046 2 2 3 3 # libtool - Provide generalized library-building support services. 4 # Generated automatically by config.status (ImageMagick) 6.7.5- 104 # Generated automatically by config.status (ImageMagick) 6.7.5-9 5 5 # Libtool was configured on host magick.imagemagick.org: 6 6 # NOTE: Changes made to this file will be lost: look at ltmain.sh. -
ImageMagick/branches/ImageMagick-6.7.5/magick/magick-config.h
r7045 r7046 1303 1303 /* Define to the full name and version of this package. */ 1304 1304 #ifndef MAGICKCORE_PACKAGE_STRING 1305 #define MAGICKCORE_PACKAGE_STRING "ImageMagick 6.7.5- 10"1305 #define MAGICKCORE_PACKAGE_STRING "ImageMagick 6.7.5-9" 1306 1306 #endif 1307 1307 … … 1318 1318 /* Define to the version of this package. */ 1319 1319 #ifndef MAGICKCORE_PACKAGE_VERSION 1320 #define MAGICKCORE_PACKAGE_VERSION "6.7.5- 10"1320 #define MAGICKCORE_PACKAGE_VERSION "6.7.5-9" 1321 1321 #endif 1322 1322 … … 1508 1508 /* Version number of package */ 1509 1509 #ifndef MAGICKCORE_VERSION 1510 #define MAGICKCORE_VERSION "6.7.5- 10"1510 #define MAGICKCORE_VERSION "6.7.5-9" 1511 1511 #endif 1512 1512 -
ImageMagick/branches/ImageMagick-6.7.5/magick/version.h
r7045 r7046 32 32 #define MagickLibVersionText "6.7.5" 33 33 #define MagickLibVersionNumber 5,0,0 34 #define MagickLibAddendum "- 10"34 #define MagickLibAddendum "-9" 35 35 #define MagickLibInterface 5 36 36 #define MagickLibMinInterface 5 -
ImageMagick/branches/ImageMagick-6.7.5/version.sh
r7045 r7046 14 14 PACKAGE_PERL_VERSION='6.75' 15 15 PACKAGE_LIB_VERSION="0x675" 16 PACKAGE_RELEASE=" 10"16 PACKAGE_RELEASE="9" 17 17 PACKAGE_LIB_VERSION_NUMBER="6,7,5,${PACKAGE_RELEASE}" 18 18 PACKAGE_RELEASE_DATE=`date +%F`
Note: See TracChangeset
for help on using the changeset viewer.
