comparison README.imagemagick @ 109864:458fda2a5cff

improved lisp interface to scaling, doc changed acordingly
author Joakim <joakim@localhost.localdomain>
date Thu, 17 Jun 2010 09:44:04 +0200
parents d68f30f3aba2
children 131c45ff9c34
comparison
equal deleted inserted replaced
109863:d68f30f3aba2 109864:458fda2a5cff
74 imagemagick-types-inhibit has the value '(C HTML HTM TXT PDF) by default. 74 imagemagick-types-inhibit has the value '(C HTML HTM TXT PDF) by default.
75 This means imagemagick will be used also to load jpeg files, if you 75 This means imagemagick will be used also to load jpeg files, if you
76 have both jpeg and imagemagick libraries linked. Add 'JPG to 76 have both jpeg and imagemagick libraries linked. Add 'JPG to
77 imagemagick-types-inhibit if you do not want this. 77 imagemagick-types-inhibit if you do not want this.
78 78
79 imagemagick-render-type is a new variable which can be set to choose
80 between screen render methods.
81
82 - 0 is a conservative metod which works with older ImageMagick
83 versions. It is a bit slow, but robust.
84
85 - 1 utilizes a newer ImageMagick method
86
87
79 Images loaded with imagemagick will support a couple of new display 88 Images loaded with imagemagick will support a couple of new display
80 specifications: 89 specification behaviours:
81 90
91 - if the :width and :height keywords are specified, these values are
92 used for scaling the image. If only one of :width or :height is
93 specified, the other one will be calculated so as to preserve the
94 aspect ratio.If both :width and :height are specified, aspect ratio
95 will not be preserved.
96
97 - :rotation specifies a rotation angle in degrees.
98
99 - :index specifies which image inside an image bundle file format, such
100 as TIFF or DJVM, to view.
101
102 The image-metadata function can be used to retrieve the total number
103 of images in an image bundle. This is simmilar to how GIF files work.
104
105 - :crop is used to specify a croping area: (width height x y). This
106 is similar to the slice image specification, but has a different
107 purpose. :crop removes the croped areas from memory, so its memory
108 efficient if you only need to view a certain part of the image. The
109 slice specification can be used to pick diferent parts of the same
110 image, so its more disk and display efficient.
111
112
113 * experimental
82 - :geometry takes a geometry string as defined by ImageMagick: 114 - :geometry takes a geometry string as defined by ImageMagick:
83 115
84 scale% 116 scale%
85 scale-x%xscale-y% 117 scale-x%xscale-y%
86 width 118 width
94 {size}{offset} 126 {size}{offset}
95 {size}{+-}x{+-}y 127 {size}{+-}x{+-}y
96 128
97 See the ImageMagick manual for more information. 129 See the ImageMagick manual for more information.
98 130
99 Furthermore, if the :width and :height keywords are specified, these 131 - :crop is used to specify a croping area, with the "{size}{offset}" syntax.
100 values are used for scaling the image.
101 132
102 - :rotation specifies a rotation angle in degrees. 133 :geometry and :crop with a string argument, are both particular to
103 134 ImageMagick, whereas the lisp interface is more general. Currently it
104 - :index specifies which image inside an image bundle file format, such 135 seems like the lisp interface is good enough, so the string argument
105 as TIFF or DJVM, to view. 136 interface will probably be removed.
106
107 The image-metadata function can be used to retrieve the total number
108 of images in an image bundle. This is simmilar to how GIF files work.
109
110 - :crop is used to specify a croping area, with the {size}{offset}
111 syntax. This is similar to the slice image specification, but has a
112 different purpose. :crop removes the croped areas from memory, so its
113 memory efficient if you only need to view a certain part of the
114 image. :slice can be used to pick diferent parts of the same image, so
115 its more disk and display efficient.
116
117 137
118 * Changelog entry 138 * Changelog entry
119 2010-06-12 Joakim Verona <joakim@verona.se> 139 2010-06-12 Joakim Verona <joakim@verona.se>
120 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is 140 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
121 defined: 141 defined: