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