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