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