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