Changeset 7046


Ignore:
Timestamp:
03/04/12 17:07:58 (15 months ago)
Author:
cristy
Message:
 
Location:
ImageMagick/branches/ImageMagick-6.7.5
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/branches/ImageMagick-6.7.5/ChangeLog

    r7044 r7046  
    112012-03-02  6.7.5-9 Cristy  <quetzlzacatenango@image...> 
    2   * New version 6.7.5-9, SVN revision 7043. 
     2  * New version 6.7.5-9, SVN revision 7046. 
    33 
    442012-02-29  6.7.5-9 Cristy  <quetzlzacatenango@image...> 
    55  * Caption no long includes the prefix "caption:" in the rendered text. 
     6  * Auto scale pointsize for -size 100x100 caption: 
    67 
    782012-03-02  6.7.5-8 Cristy  <quetzlzacatenango@image...> 
  • ImageMagick/branches/ImageMagick-6.7.5/ImageMagick.spec

    r7045 r7046  
    11%global VERSION  6.7.5 
    2 %global Patchlevel  10 
     2%global Patchlevel  9 
    33 
    44Name:           ImageMagick 
  • ImageMagick/branches/ImageMagick-6.7.5/coders/caption.c

    r7042 r7046  
    110110} 
    111111 
    112 static Image *ReadCAPTIONImage(const ImageInfo *image_info, 
    113   ExceptionInfo *exception) 
     112static MagickBooleanType PangoImage(const ImageInfo *image_info,Image *image, 
     113  const DrawInfo *draw_info,ExceptionInfo *exception) 
    114114{ 
    115115  char 
     
    120120    *option; 
    121121 
    122   DrawInfo 
    123     *draw_info; 
    124  
    125122  FT_Bitmap 
    126123    *canvas; 
    127124 
    128   Image 
    129     *image; 
    130  
    131125  PangoAlignment 
    132126    align; 
     
    165159    y; 
    166160 
    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"); 
    179161  /* 
    180162    Get context. 
     
    190172  if (option != (const char *) NULL) 
    191173    pango_context_set_language(context,pango_language_from_string(option)); 
    192   draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); 
    193174  pango_context_set_base_dir(context,draw_info->direction == 
    194175    RightToLeftDirection ? PANGO_DIRECTION_RTL : PANGO_DIRECTION_LTR); 
     
    264245  description=pango_font_description_from_string(draw_info->font == 
    265246    (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)); 
    267249  pango_layout_set_font_description(layout,description); 
    268250  pango_font_description_free(description); 
     
    318300  canvas=(FT_Bitmap *) AcquireMagickMemory(sizeof(*canvas)); 
    319301  if (canvas == (FT_Bitmap *) NULL) 
    320     { 
    321       draw_info=DestroyDrawInfo(draw_info); 
    322       ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); 
    323     } 
     302    ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed", 
     303      image->filename); 
    324304  canvas->width=image->columns; 
    325305  canvas->pitch=(canvas->width+3) & ~3; 
     
    329309  if (canvas->buffer == (unsigned char *) NULL) 
    330310    { 
    331       draw_info=DestroyDrawInfo(draw_info); 
    332311      canvas=(FT_Bitmap *) RelinquishMagickMemory(canvas); 
    333       ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); 
     312      ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed", 
     313        image->filename); 
    334314    } 
    335315  canvas->num_grays=256; 
     
    344324  if (SetImageBackgroundColor(image) == MagickFalse) 
    345325    { 
    346       draw_info=DestroyDrawInfo(draw_info); 
    347326      canvas->buffer=(unsigned char *) RelinquishMagickMemory(canvas->buffer); 
    348327      canvas=(FT_Bitmap *) RelinquishMagickMemory(canvas); 
    349328      caption=DestroyString(caption); 
    350329      image=DestroyImageList(image); 
    351       return((Image *) NULL); 
     330      return(MagickFalse); 
    352331    } 
    353332  p=canvas->buffer; 
     
    381360    Relinquish resources. 
    382361  */ 
    383   draw_info=DestroyDrawInfo(draw_info); 
    384362  canvas->buffer=(unsigned char *) RelinquishMagickMemory(canvas->buffer); 
    385363  canvas=(FT_Bitmap *) RelinquishMagickMemory(canvas); 
    386364  caption=DestroyString(caption); 
    387   return(GetFirstImageInList(image)); 
     365  return(MagickTrue); 
    388366} 
    389 #else 
     367#endif 
     368 
    390369static Image *ReadCAPTIONImage(const ImageInfo *image_info, 
    391370  ExceptionInfo *exception) 
     
    397376 
    398377  const char 
    399     *gravity; 
     378    *gravity, 
     379    *option; 
    400380 
    401381  DrawInfo 
     
    436416  */ 
    437417  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); 
    438426  (void) SetImageProperty(image,"caption",property); 
    439427  property=DestroyString(property); 
     
    524512      draw_info->geometry=AcquireString(geometry); 
    525513    } 
    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 
    527519  draw_info=DestroyDrawInfo(draw_info); 
    528520  caption=DestroyString(caption); 
     521  if (status == MagickFalse) 
     522    { 
     523      image=DestroyImageList(image); 
     524      return((Image *) NULL); 
     525    } 
    529526  return(GetFirstImageInList(image)); 
    530527} 
    531 #endif 
    532528 
    533529/* 
  • ImageMagick/branches/ImageMagick-6.7.5/config/configure.xml

    r7045 r7046  
    1010  <configure name="VERSION" value="6.7.5"/> 
    1111  <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"/> 
    1313  <configure name="SVN_REVISION" value="7029" /> 
    1414  <configure name="RELEASE_DATE" value="2012-03-04"/> 
  • ImageMagick/branches/ImageMagick-6.7.5/configure

    r7045 r7046  
    11#! /bin/sh 
    22# 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. 
    44# 
    55# Report bugs to <http://www.imagemagick.org>. 
     
    575575PACKAGE_NAME='ImageMagick' 
    576576PACKAGE_TARNAME='ImageMagick' 
    577 PACKAGE_VERSION='6.7.5-10' 
    578 PACKAGE_STRING='ImageMagick 6.7.5-10' 
     577PACKAGE_VERSION='6.7.5-9' 
     578PACKAGE_STRING='ImageMagick 6.7.5-9' 
    579579PACKAGE_BUGREPORT='http://www.imagemagick.org' 
    580580PACKAGE_URL='' 
     
    17411741  # This message is too long to be a string in the A/UX 3.1 sh. 
    17421742  cat <<_ACEOF 
    1743 \`configure' configures ImageMagick 6.7.5-10 to adapt to many kinds of systems. 
     1743\`configure' configures ImageMagick 6.7.5-9 to adapt to many kinds of systems. 
    17441744 
    17451745Usage: $0 [OPTION]... [VAR=VALUE]... 
     
    18161816if test -n "$ac_init_help"; then 
    18171817  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:";; 
    18191819   esac 
    18201820  cat <<\_ACEOF 
     
    20352035if $ac_init_version; then 
    20362036  cat <<\_ACEOF 
    2037 ImageMagick configure 6.7.5-10 
     2037ImageMagick configure 6.7.5-9 
    20382038generated by GNU Autoconf 2.68 
    20392039 
     
    30783078running configure, to aid debugging if configure makes a mistake. 
    30793079 
    3080 It was created by ImageMagick $as_me 6.7.5-10, which was 
     3080It was created by ImageMagick $as_me 6.7.5-9, which was 
    30813081generated by GNU Autoconf 2.68.  Invocation command line was 
    30823082 
     
    41014101# Define the identity of the package. 
    41024102 PACKAGE='ImageMagick' 
    4103  VERSION='6.7.5-10' 
     4103 VERSION='6.7.5-9' 
    41044104 
    41054105 
     
    3648136481# values after options handling. 
    3648236482ac_log=" 
    36483 This file was extended by ImageMagick $as_me 6.7.5-10, which was 
     36483This file was extended by ImageMagick $as_me 6.7.5-9, which was 
    3648436484generated by GNU Autoconf 2.68.  Invocation command line was 
    3648536485 
     
    3654736547ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 
    3654836548ac_cs_version="\\ 
    36549 ImageMagick config.status 6.7.5-10 
     36549ImageMagick config.status 6.7.5-9 
    3655036550configured by $0, generated by GNU Autoconf 2.68, 
    3655136551  with options \\"\$ac_cs_config\\" 
  • ImageMagick/branches/ImageMagick-6.7.5/configure.ac

    r7045 r7046  
    2020m4_define([magick_minor_version], [7]) 
    2121m4_define([magick_micro_version], [5]) 
    22 m4_define([magick_patchlevel_version], [10]) 
     22m4_define([magick_patchlevel_version], [9]) 
    2323m4_define([magick_version], 
    2424          [magick_major_version.magick_minor_version.magick_micro_version-magick_patchlevel_version]) 
  • ImageMagick/branches/ImageMagick-6.7.5/libtool

    r7045 r7046  
    22 
    33# libtool - Provide generalized library-building support services. 
    4 # Generated automatically by config.status (ImageMagick) 6.7.5-10 
     4# Generated automatically by config.status (ImageMagick) 6.7.5-9 
    55# Libtool was configured on host magick.imagemagick.org: 
    66# 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  
    13031303/* Define to the full name and version of this package. */ 
    13041304#ifndef MAGICKCORE_PACKAGE_STRING 
    1305 #define MAGICKCORE_PACKAGE_STRING "ImageMagick 6.7.5-10" 
     1305#define MAGICKCORE_PACKAGE_STRING "ImageMagick 6.7.5-9" 
    13061306#endif 
    13071307 
     
    13181318/* Define to the version of this package. */ 
    13191319#ifndef MAGICKCORE_PACKAGE_VERSION 
    1320 #define MAGICKCORE_PACKAGE_VERSION "6.7.5-10" 
     1320#define MAGICKCORE_PACKAGE_VERSION "6.7.5-9" 
    13211321#endif 
    13221322 
     
    15081508/* Version number of package */ 
    15091509#ifndef MAGICKCORE_VERSION 
    1510 #define MAGICKCORE_VERSION "6.7.5-10" 
     1510#define MAGICKCORE_VERSION "6.7.5-9" 
    15111511#endif 
    15121512 
  • ImageMagick/branches/ImageMagick-6.7.5/magick/version.h

    r7045 r7046  
    3232#define MagickLibVersionText  "6.7.5" 
    3333#define MagickLibVersionNumber  5,0,0 
    34 #define MagickLibAddendum  "-10" 
     34#define MagickLibAddendum  "-9" 
    3535#define MagickLibInterface  5 
    3636#define MagickLibMinInterface  5 
  • ImageMagick/branches/ImageMagick-6.7.5/version.sh

    r7045 r7046  
    1414PACKAGE_PERL_VERSION='6.75' 
    1515PACKAGE_LIB_VERSION="0x675" 
    16 PACKAGE_RELEASE="10" 
     16PACKAGE_RELEASE="9" 
    1717PACKAGE_LIB_VERSION_NUMBER="6,7,5,${PACKAGE_RELEASE}" 
    1818PACKAGE_RELEASE_DATE=`date +%F` 
Note: See TracChangeset for help on using the changeset viewer.