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