]> git.imager.perl.org - imager.git/blob - TODO
more to do
[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 For 0.56:
10
11 checking testing of new ft2 rendering (done)
12
13 possibly: use renderer on other fonts
14
15 check testing of new ppm input (done)
16
17 check testing of new ppm output (done)
18
19 check lbr's font output issue
20
21 tests for monochrome makemap (done)
22
23 correct handling of old Data::Dumper (#24391) (done)
24
25 fix unsharpmask documentation (#25531)
26
27 work around compiler bug on OS X (#25561)
28
29 BEFORE 0.54
30
31 OO interface for i_plin/i_glin (done)
32
33 remove gif query from makefile.pl (done)
34
35 fallback for read/write_multi to read/write
36
37 pnmscale based alternative scale method (done)
38
39 rubthrough 4 on 4 (done)
40
41 replace dummy test script in dynfilt with a real one (done)
42
43 BEFORE 0.50:
44
45 skip t82inline.t tests if directory has spaces in name
46
47 integrate pod coverage tests
48
49 rework iolayers
50
51 add .ico support
52
53 note lack of IRC support
54
55 document parseiptc()
56
57 BEFORE 0.48:
58
59 scale() fixes/docs, Imager::Transformations going over. (done)
60
61 do some more malloc checks (done)
62
63 scan $Config{libspath} for directories if we can. (done)
64
65 0.47:
66
67 - more documentation (and corresponding code cleanup)
68
69 - external C API access
70
71 - hooks for file reading/writing
72
73 - hooks for font types
74
75 - hooks for filters
76
77 - hooks for fills
78
79 - filter pre-processor for handling both image access methods
80
81 - move existing loadable filters into separate sub-directories
82
83 - write Imager::SDL
84
85 - maybe Imager::Tk::Photo
86
87
88 0.46: (September 2005)
89
90 - check remaining memory allocation calls for integer overflows
91   http://rt.cpan.org/NoAuth/Bug.html?id=8213
92    - check *alloc() calls
93    - check llist_push() calls
94
95 - fix Imager::Color warning when $ENV{HOME} isn't set from
96   _get_gimp_color() (done)
97   http://rt.cpan.org/NoAuth/Bug.html?id=13143
98
99 - module version numbers (done)
100   http://rt.cpan.org/NoAuth/Bug.html?id=13047 
101
102 - allow limits to be set on the size of an image read from a file.  This is
103   to prevent an attacker supplying huge images that consume all of 
104   memory causing a denial of service attack. (done)
105
106 - implement gsamp()/gsampf()/plin() etc methods for those low level image
107   interfaces which don't yet have methods. (done)
108    - code (done)
109    - test (done)
110    - document (done)
111
112 - add Imager::Tutorial (see Tk::UserGuide for a structure) (done)
113   don't cover installation - belongs in README or INSTALL
114   it doesn't need to cover everything - read/write/create/simple drawing
115   and simple text - other stuff belongs in the cookbook or in sample code
116
117 - rename lib/Imager/Cookbook.pm to lib/Imager/Cookbook.pod (done)
118
119 - add 5 more recipes to Imager::Cookbook
120
121 - implement i_incomplete for png and gif files.
122
123 - documentation audit, check:
124   - every method has at least one example, but if the method is complex
125     (like transform2, to_paletted, string() for example) it should include 
126     a range of examples
127   - check each method description to ensure it's reasonably clear.
128   - check POD sections (SEE ALSO in particular)
129   - multiple examples for writing GIF images.
130   - name arguments and use those names in the documentation
131     http://nntp.perl.org/group/perl.perl5.porters/102434
132   (#1521, #5608, #8231, #11429, #13058(done))
133
134 - have $img->read() act like ($img) = Imager->read_multi() on GIFs (done)
135
136 - figure out what the nearest_color filter does, and document it
137
138 - remove image.h dependency on t1lib.h (done)
139
140 - make sure dynfilt/Makefile.PL gets the same includes that
141   Makefile.PL does.
142
143 0.47:
144
145 - rework handling of antialiasing and other transparency against
146   transparent images
147
148   Places to check:
149    - text AA rendering
150    - AA line drawing
151    - anything that uses combine (fills in particular)
152    - image scaling? and matrix_transform()'s interpolation
153   http://rt.cpan.org/NoAuth/Bug.html?id=11972
154
155 0.48:
156
157 - fill out handling of large sample (16/double per sample) images
158   - filters
159   - rendering:
160     - lines
161     - text
162     - boxes
163     - polygons
164   - engines
165     - matrix transform
166     - transform()
167     - transform2()
168   - files:
169     - png
170     - tiff
171     - pnm
172
173 Speculation
174 -----------
175
176 Some of what's listed below has been implemented.
177
178 - should i_incomplete be optional?  ie. reading a short image results in
179   an error unless the user requests incomplete images.
180
181 Iolayer:
182 - Add scalar/mmap to iolayer
183 - Add close() code to iolayer for fakeseek sources.
184 - Merge callback interface into iolayer
185 - and raw
186 - Implment the maxread threshold (Indicates how much can
187   be read from a source before it stops reading from its
188   underlying source.  For making sure only the relevant
189   data is read from a socket for example. 
190
191 Enhanched internal structure:
192
193 MultiImage & metadata support:
194 - Figure what interface should be between C and perl?
195 - How to store data in the C interface for tags/metadata?
196   Support tiff's madness, i.e. tags and options.
197 - Error handling, make a general i_errstr object and arrange
198   such that each image has an i_errstr object to hold its
199   local errors?
200 - SEE design/represent.txt for proposed new structure and
201   interface design that takes these factors into account.
202 - define common i_* tags for specifying attribute common among images
203   like spatial resolution (implement for other image types, especially 
204   TIFF)  (Spatial resolution is supported for all types that support 
205   it - are there any other common properties we can add?)
206 - implement the i_incomplete tag for other formats  
207
208 New Features:
209 - Add mng support, pcx and aalib support.
210   - Windows icon files (.ico) (done)
211   - ILBM (Amiga) images
212   - photoshop files (I think I've seen docs)
213   - XBM
214   - FITS
215   - WMF (extract bitmap data on read)
216   - gzip or bzip2 compressed raw
217   - postscript for output
218   - PAM file support (man pam in recent PNM tools)
219
220 - Transforms, interpolated multidimensional lookup tables.
221   Usefull for CMYK <-> RGB table lookup.
222
223 - advanced font layout (spacing, kerning, alignment) (Artur?)
224
225 - ways to check if characters are present in a font, eg. checking if
226   ligatures are present (done for FreeType2)
227
228 - font synthesis - synthesize a bold or slanted font from a normal font
229   (or even from an existing bold or slanted font)
230
231 - utf8 support for text output
232   (available for FT1, freetype2, T1, Win32)
233
234 - easy interfaces for text output:
235   - align text around point, including:
236     - left, center, right horizontal alignment
237     - top, center, baseline, bottom alignment
238     - choose whether to base alignment upon character cells or font 
239       metrics to avoid spacing problems between lines
240   - fill a box from text, with newline handling
241     - an option to just return the information that would be used to 
242       output the text, so it can be used for sizing calculations
243     - how much text fit in the box/how much space is left in the box
244   - fill a box with rich text (size and font changes)
245     - as above
246     - wrapping around boxes/images
247   - pod2Imager :)
248
249 - tools to get more information about fonts/characters:
250   - name of font "Arial Bold Italic" vs "arialbi.ttf"
251   - ABC widths for characters (currently the only way to get the C width 
252     for a character is to get the width with a following space and without
253     and then compare)
254   - character names
255
256 - encodings for text output (maybe using the Encode module to work 
257   between encodings)
258
259 - image rotation, 3 ways of doing rotation:
260   - rotation by shearing, which produces makes lengths in the image larger,
261     but could be useful
262   (2 of the 3 have been done)
263
264 - read_multi() needs to handle other multi-image types,
265    (handles TIFF and GIF)
266
267 - write_multi() to save other multi-image types, (handles TIFF and GIF)
268   - pnm binary formats support multiple images per file
269
270 - compose channels - build a new image based on channels from several
271   images
272
273 - arc outlines
274
275 - complex lines/curves:
276   - thick lines:
277     - dotted/dashed lines
278     - doubled lines?
279     - end-point controls (butt-end, square-end, round-end, pointy, arrows)
280   - brush-lines (as with the Gimp, or Photoshop)
281     - more complex with multiple strokes and various randomness as with
282       Fractal Design Painter (or later versions of Corel Photo Paint)
283   - complex line shapes:
284     - lines
285     - general curves (cubic or bezier, whichever is more general)
286     - easy access to general curves:
287       - points to make a nice curve from
288       - various circular curves (centre, radii, start/end angles, 
289         direction)
290   - Complex thick lines are probably more useful than brush-lines for 
291     the things I expect Imager to be used for.
292   - http://www.develop-help.com/imager/strokes.png (.jpg for smaller version)
293
294 - have Imager::Color{::Float}? use Graphics::ColorNames if present.
295
296 Clean up:
297 - Make sure everything is doable with the OO interface
298   i_flood_fill() for example.
299   - include low-level functions like gsamp() and so on
300
301 - Compile with memory debugging enabled and fix all leaks
302
303 - Add mycalloc() memory allocation wrappers.
304
305 - should we overload <=> or cmp for Imager::Color objects?
306   too many worms, leave it out
307
308 - should the interlace option for reading raw images have 
309   symbolic names in the OO interface?
310
311 - improve consistency in the interfaces, both in trying to use named
312   parameters where possible but also in using consistent names, eg.
313   (tx, ty) vs (left, top) in rubthrough() vs paste().  Do we want a (simple)
314   standard for this (suggested names)?  Remember to preserve the old 
315   interface where possible.
316
317 - try to clean up the inconsistencies between font types:
318   - utf8 (even if we just treat characters over 0xFF as missing for T1)
319     (done for FT2, FT1, T1)
320   - transformations (done for FT2)
321   - has_char() method (done for FT2, FT1, T1)
322
323 Format specific issues:
324 - provide patches for libgif and libungif that fix their bugs
325   and give a useful extension interface.  Probe for the 
326   installation of the patches in Makefile.PL to let gif.c
327   know what features it can use. (no need anymore)
328
329 - Add options for pnm writer to save in any of the p1..P6
330   formats.  Even if the input has 1 channel, write 3 and such
331   cases.  Also allow ascii mode.  Need to be able to write 
332   pbm images which needs ties to the quantization code.
333
334 - save paletted images as paletted where that's supported.  Done
335   for gif/tga/bmp/tiff.  Not done for png yet.
336
337 - read other format paletted images as paletted images.  This has 
338   been done for gif/tga/bmp/tiff formats but not for png.
339
340 - read/write 16-bit/sample images as such for tiff
341
342 - read more metadata from images, esp tiff tags, EXIF format information 
343   from TIFF and JPEG.
344
345 - handle 16-bit/sample pgm/ppm files (done)
346
347 - "jpeg lossless rotation" - directly manipulates the JPEG
348   representation to rotate, scale or in some limited cases, crop an
349   image.
350
351 Documentation:
352 - Add to the documentation
353 - Write a tutorial?
354 - sample code and Imager/Samples.pod describing them
355 - Imager/Cookbook.pod
356 - Write a guide to installing the helper libraries
357 - Go through the entire project and add comments in pod
358   so doco.perl can be used to read them.
359 - see the IRC log in design/doclayout.txt
360 - method index?
361 - concept index?
362
363 Build/configure:
364 - use prompt() (from ExtUtils::MakeMaker) for questions in Makefile.PL
365 - use the library's mechanism's to find the library if needed, for
366   example, freetype-config for FT2
367 - the freetype2 library is built as "freetype.lib" on Win32 and needs
368   to be renamed to be found by the configuration process and included
369   with -lfreetype.  Try to work around that.
370 - freetype2 and freetype1 tend to be installed in /usr/include/freetype2
371   and /usr/include/freetype directories, or similarly named (somedir/freetype
372   for example), instead of putting these directly into the search path
373   search for the freetype{2}?/someheader and then add the subdirectory if
374   we find the file in that directory.
375 - switch to Test::More
376 - change headers to use more unique re-include protection macros
377
378 Old release checklists
379 ----------------------
380
381 0.44: (december 2004)
382 - set i_format for every file type on read and test for it:
383   - bmp - done
384   - jpeg - done
385   - tiff - done
386   - tga - done
387   - rgb - no read function anyway
388   - png - done
389   - gif - done
390   - pnm - done
391   - raw - done
392 - check each file reader for possible integer overflows
393   - bmp - done
394   - tiff
395   - tga
396   - rgb
397   - png
398   - gif
399   - pnm
400 - check bmp code uses image data offset correctly - done
401 - check quant code for integer overflows - done
402 - check for old URLs (umich and imager.perl.org/~addi/...) - done
403
404 0.45: (march 2005?)
405 - resolve fills test failure under 5.8.6/darwin
406   http://www.nntp.perl.org/group/perl.cpan.testers/202802
407   add tests to check if the same problem occurs with other ?: operators
408 - stop tga_header_verify() from spewing junk to stdout (done)
409 - fix i_setcolors_p bug (done)
410 - audit pnm.c (done)
411 - audit tga.c (done)
412 - audit rgb.c and add tests
413 - add META.yml (bypass EU::MM's limited mechanism) (done)
414 - implement i_incomplete for bmp files
415 - check if freetype 2 is faster/slower than freetype 1 with Imager's glyph
416   caching.  If FT1 is faster, add caching as a TODO for FT2.
417 - add XS for i_tags_get_string() and test it.  It has an apparent problem
418   in C<< sprintf(value, "%d", entry->data); >> since data is a pointer
419   (done)
420 - test and fix problem with fallback value for 
421   Imager::Font::BBox->advance_width. (done)
422 - check handling of string() method align parameter. (done, fixed)
423 - i_tt_bbox_inst in font.c uses variable i without ever setting it. (fixed)
424 - add sample CGI that handles an uploaded image (done)
425 - examples for fountain filter in Imager::Filters (done)
426 - allow Imager::Fountain to take color descriptions (eg. blue, FF000)
427   instead of color objects for c0 and c1 (done)
428 - support newer GIMP gradient files with the Name line (done)
429 - provide access to right-side bearing information from the bounding box
430   function (done for all drivers)
431 - capture TIFF read warnings (i_warnings tag?) (done)
432 - Imager::Matrix2d rotate method only applies offset if both x and y
433   are non-zero, it should do it if either is non-zero (done)
434 - add Imager::Cookbook with at least 5 recipes (done)
435 - store floating point tags in an appropriate precision (done)
436 - allow image creation to fail on malloc() failure for the image data
437   rather than aborting.  The current behaviour could be a denial of
438   service attack.  This has limited utility because of the way memory
439   over commitment works on Linux (done but reverted)
440 - eliminate unused variable warning (especially the RETVAL ones in Imager.xs)
441   (done)
442 - handle probing for libraries better (use pkg-config or I<library>-config
443   where possible (freetype2 and libpng)) (done)
444 - add concept index to Imager.pm pod (done, still working it)
445 - replace testimg/penguin-base.ppm with a smaller image (done)
446 - add a sample CGI HTML and image generation scripts that work together,
447   with appropriate security management (done)
448