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