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