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