3 Release Plans (subject to change)
6 brown-bag bugs may add intermediate releases. The dates are goals,
12 - audit rgb.c and add tests
13 - add META.yml (bypass EU::MM's limited mechanism) (done)
14 - implement i_incomplete for bmp files
15 - check if freetype 2 is faster/slower than freetype 1 with Imager's glyph
16 caching. If FT1 is faster, add caching as a TODO for FT2.
17 - add XS for i_tags_get_string() and test it.
18 - test and fix problem with fallback value for
19 Imager::Font::BBox->advance_width.
20 - add sample CGI that handles an uploaded image (done)
21 - examples for fountain filter in Imager::Filters
22 - allow Imager::Fountain to take color descriptions (eg. blue, FF000)
23 instead of color objects for c0 and c1 (done)
24 - support newer GIMP gradient files with the Name line (done)
25 - provide access to right-side bearing information from the bounding box
27 - capture TIFF read warnings (i_warnings tag?) (done)
28 - add Imager::Cookbook with at least 5 recipes (done)
29 - store floating point tags in an appropriate precision (done)
30 - allow image creation to fail on malloc() failure for the image data
31 rather than aborting. The current behaviour could be a denial of
32 service attack. This has limited utility because of the way memory
33 over commitment works on Linux (done but reverted)
34 - eliminate unused variable warning (especially the RETVAL ones in Imager.xs)
36 - handle probing for libraries better (use pkg-config or I<library>-config
37 where possible (freetype2 and libpng)) (done)
38 - add concept index to Imager.pm pod (done, still working it)
39 - replace testimg/penguin-base.ppm with a smaller image (done)
40 - add a sample CGI HTML and image generation scripts that work together,
41 with appropriate security management (done)
44 - allow limits to be set on the size of an image read from a file. This is
45 to prevent an attacker supplying huge images that consume all of
46 memory causing a denial of service attack.
47 - add Imager::Tutorial (see Tk::UserGuide for a structure)
48 don't cover installation - belongs in README or INSTALL
49 it doesn't need to cover everything - read/write/create/simple drawing
50 and simple text - other stuff belongs in the cookbook or in sample code
51 - add 5 more recipes to Imager::Cookbook
52 - implement gsamp()/gsampf()/plin() etc methods for those low level image
53 interfaces which don't yet have methods.
54 - implement i_incomplete for png and gif files.
55 - documentation audit, check:
56 - every method has at least one example, but if the method is complex
57 (like transform2, to_paletted, string() for example) it should include
59 - check each method description to ensure it's reasonably clear.
60 - check POD sections (SEE ALSO in particular)
61 - rework handling of antialiasing against transparent images
66 Some of what's listed below has been implemented.
68 - should i_incomplete be optional? ie. reading a short image results in
69 an error unless the user requests incomplete images.
72 - Add scalar/mmap to iolayer
73 - Add close() code to iolayer for fakeseek sources.
74 - Merge callback interface into iolayer
76 - Implment the maxread threshold (Indicates how much can
77 be read from a source before it stops reading from its
78 underlying source. For making sure only the relevant
79 data is read from a socket for example.
81 Enhanched internal structure:
83 MultiImage & metadata support:
84 - Figure what interface should be between C and perl?
85 - How to store data in the C interface for tags/metadata?
86 Support tiff's madness, i.e. tags and options.
87 - Error handling, make a general i_errstr object and arrange
88 such that each image has an i_errstr object to hold its
90 - SEE design/represent.txt for proposed new structure and
91 interface design that takes these factors into account.
92 - define common i_* tags for specifying attribute common among images
93 like spatial resolution (implement for other image types, especially
94 TIFF) (Spatial resolution is supported for all types that support
95 it - are there any other common properties we can add?)
96 - implement the i_incomplete tag for other formats
99 - Add mng support, pcx and aalib support.
100 - Windows icon files (.ico)
101 - ILBM (Amiga) images
102 - photoshop files (I think I've seen docs)
105 - WMF (extract bitmap data on read)
106 - gzip or bzip2 compressed raw
107 - postscript for output
108 - PAM file support (man pam in recent PNM tools)
110 - Transforms, interpolated multidimensional lookup tables.
111 Usefull for CMYK <-> RGB table lookup.
113 - advanced font layout (spacing, kerning, alignment) (Artur?)
115 - ways to check if characters are present in a font, eg. checking if
116 ligatures are present (done for FreeType2)
118 - font synthesis - synthesize a bold or slanted font from a normal font
119 (or even from an existing bold or slanted font)
121 - utf8 support for text output
122 (available for FT1, freetype2, should be easy for Win32)
124 - easy interfaces for text output:
125 - align text around point, including:
126 - left, center, right horizontal alignment
127 - top, center, baseline, bottom alignment
128 - choose whether to base alignment upon character cells or font
129 metrics to avoid spacing problems between lines
130 - fill a box from text, with newline handling
131 - an option to just return the information that would be used to
132 output the text, so it can be used for sizing calculations
133 - how much text fit in the box/how much space is left in the box
134 - fill a box with rich text (size and font changes)
136 - wrapping around boxes/images
139 - tools to get more information about fonts/characters:
140 - name of font "Arial Bold Italic" vs "arialbi.ttf"
141 - ABC widths for characters (currently the only way to get the C width
142 for a character is to get the width with a following space and without
146 - encodings for text output (maybe using the Encode module to work
149 - image rotation, 3 ways of doing rotation:
150 - rotation by shearing, which produces makes lengths in the image larger,
152 (2 of the 3 have been done)
154 - read_multi() needs to handle other multi-image types,
155 (handles TIFF and GIF)
157 - write_multi() to save other multi-image types, (handles TIFF and GIF)
158 - pnm binary formats support multiple images per file
160 - compose channels - build a new image based on channels from several
165 - complex lines/curves:
167 - dotted/dashed lines
169 - end-point controls (butt-end, square-end, round-end, pointy, arrows)
170 - brush-lines (as with the Gimp, or Photoshop)
171 - more complex with multiple strokes and various randomness as with
172 Fractal Design Painter (or later versions of Corel Photo Paint)
173 - complex line shapes:
175 - general curves (cubic or bezier, whichever is more general)
176 - easy access to general curves:
177 - points to make a nice curve from
178 - various circular curves (centre, radii, start/end angles,
180 - Complex thick lines are probably more useful than brush-lines for
181 the things I expect Imager to be used for.
182 - http://www.develop-help.com/imager/strokes.png (.jpg for smaller version)
184 - have Imager::Color{::Float}? use Graphics::ColorNames if present.
187 - Make sure everything is doable with the OO interface
188 i_flood_fill() for example.
189 - include low-level functions like gsamp() and so on
191 - Compile with memory debugging enabled and fix all leaks
193 - Add mycalloc() memory allocation wrappers.
195 - should we overload <=> or cmp for Imager::Color objects?
196 too many worms, leave it out
198 - should the interlace option for reading raw images have
199 symbolic names in the OO interface?
201 - improve consistency in the interfaces, both in trying to use named
202 parameters where possible but also in using consistent names, eg.
203 (tx, ty) vs (left, top) in rubthrough() vs paste(). Do we want a (simple)
204 standard for this (suggested names)? Remember to preserve the old
205 interface where possible.
207 - try to clean up the inconsistencies between font types:
208 - utf8 (even if we just treat characters over 0xFF as missing for T1)
209 (done for FT2, FT1, T1)
210 - transformations (done for FT2)
211 - has_char() method (done for FT2, FT1, T1)
213 Format specific issues:
214 - provide patches for libgif and libungif that fix their bugs
215 and give a useful extension interface. Probe for the
216 installation of the patches in Makefile.PL to let gif.c
217 know what features it can use.
219 - Add options for pnm writer to save in any of the p1..P6
220 formats. Even if the input has 1 channel, write 3 and such
221 cases. Also allow ascii mode. Need to be able to write
222 pbm images which needs ties to the quantization code.
224 - save paletted images as paletted where that's supported. Done
225 for gif/tga/bmp/tiff. Not done for png yet.
227 - read other format paletted images as paletted images. This has
228 been done for gif/tga/bmp/tiff formats but not for png.
230 - read/write 16-bit/sample images as such for tiff
232 - read more metadata from images, esp tiff tags, EXIF format information
235 - handle 16-bit/sample pgm/ppm files
238 - Add to the documentation
240 - sample code and Imager/Samples.pod describing them
241 - Imager/Cookbook.pod
242 - Write a guide to installing the helper libraries
243 - Go through the entire project and add comments in pod
244 so doco.perl can be used to read them.
245 - see the IRC log in design/doclayout.txt
250 - use prompt() (from ExtUtils::MakeMaker) for questions in Makefile.PL
251 - use the library's mechanism's to find the library if needed, for
252 example, freetype-config for FT2
253 - the freetype2 library is built as "freetype.lib" on Win32 and needs
254 to be renamed to be found by the configuration process and included
255 with -lfreetype. Try to work around that.
256 - freetype2 and freetype1 tend to be installed in /usr/include/freetype2
257 and /usr/include/freetype directories, or similarly named (somedir/freetype
258 for example), instead of putting these directly into the search path
259 search for the freetype{2}?/someheader and then add the subdirectory if
260 we find the file in that directory.
261 - switch to Test::More
262 - change headers to use more unique re-include protection macros
264 Old release checklists
265 ----------------------
267 0.44: (december 2004)
268 - set i_format for every file type on read and test for it:
273 - rgb - no read function anyway
278 - check each file reader for possible integer overflows
286 - check bmp code uses image data offset correctly - done
287 - check quant code for integer overflows - done
288 - check for old URLs (umich and imager.perl.org/~addi/...) - done