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 | ||
b8a4504c | 9 | 0.45: (march 2005?) |
c172a8d9 | 10 | - audit pnm.c (done) |
12b1fac2 | 11 | - audit tga.c (done) |
b8a4504c | 12 | - audit rgb.c and add tests |
d2bd6dbc | 13 | - add META.yml (bypass EU::MM's limited mechanism) (done) |
b8a4504c | 14 | - implement i_incomplete for bmp files |
7a0ab1b2 TC |
15 | - check if freetype 2 is faster/slower than freetype 1 with Imager's glyph |
16 | caching. If FT1 is faster, add caching as a TODO for FT2. | |
35891892 TC |
17 | - add XS for i_tags_get_string() and test it. |
18 | - test and fix problem with fallback value for | |
19 | Imager::Font::BBox->advance_width. | |
d2bd6dbc | 20 | - add sample CGI that handles an uploaded image (done) |
7a0ab1b2 TC |
21 | - examples for fountain filter in Imager::Filters |
22 | - allow Imager::Fountain to take color descriptions (eg. blue, FF000) | |
109bec2d | 23 | instead of color objects for c0 and c1 (done) |
817ba871 | 24 | - support newer GIMP gradient files with the Name line (done) |
7a0ab1b2 TC |
25 | - provide access to right-side bearing information from the bounding box |
26 | function | |
27 | - capture TIFF read warnings (i_warnings tag?) (done) | |
28 | - add Imager::Cookbook with at least 5 recipes (done) | |
6ec912a5 | 29 | - store floating point tags in an appropriate precision (done) |
b8a4504c TC |
30 | - allow image creation to fail on malloc() failure for the image data |
31 | rather than aborting. The current behaviour could be a denial of | |
6ec912a5 | 32 | service attack. This has limited utility because of the way memory |
c172a8d9 | 33 | over commitment works on Linux (done but reverted) |
b8a4504c | 34 | - eliminate unused variable warning (especially the RETVAL ones in Imager.xs) |
6b64de41 | 35 | (done) |
84ed3ca9 | 36 | - handle probing for libraries better (use pkg-config or I<library>-config |
6ec912a5 | 37 | where possible (freetype2 and libpng)) (done) |
6b64de41 | 38 | - add concept index to Imager.pm pod (done, still working it) |
12b1fac2 | 39 | - replace testimg/penguin-base.ppm with a smaller image (done) |
6ec912a5 | 40 | - add a sample CGI HTML and image generation scripts that work together, |
1a19d068 | 41 | with appropriate security management (done) |
b8a4504c TC |
42 | |
43 | 0.46: (june 2005) | |
44 | - allow limits to be set on the size of an image read from a file. This is | |
45 | to prevent an attacker supplying huge images that consume all of | |
46 | memory causing a denial of service attack. | |
47 | - add Imager::Tutorial (see Tk::UserGuide for a structure) | |
48 | don't cover installation - belongs in README or INSTALL | |
49 | it doesn't need to cover everything - read/write/create/simple drawing | |
50 | and simple text - other stuff belongs in the cookbook or in sample code | |
51 | - add 5 more recipes to Imager::Cookbook | |
52 | - implement gsamp()/gsampf()/plin() etc methods for those low level image | |
53 | interfaces which don't yet have methods. | |
54 | - implement i_incomplete for png and gif files. | |
1a19d068 TC |
55 | - documentation audit, check: |
56 | - every method has at least one example, but if the method is complex | |
57 | (like transform2, to_paletted, string() for example) it should include | |
58 | a range of examples | |
59 | - check each method description to ensure it's reasonably clear. | |
60 | - check POD sections (SEE ALSO in particular) | |
61 | - rework handling of antialiasing against transparent images | |
b8a4504c TC |
62 | |
63 | Speculation | |
64 | ----------- | |
65 | ||
66 | Some of what's listed below has been implemented. | |
67 | ||
68 | - should i_incomplete be optional? ie. reading a short image results in | |
69 | an error unless the user requests incomplete images. | |
403946c6 | 70 | |
b921d414 AMH |
71 | Iolayer: |
72 | - Add scalar/mmap to iolayer | |
a106216b | 73 | - Add close() code to iolayer for fakeseek sources. |
b921d414 | 74 | - Merge callback interface into iolayer |
a106216b AMH |
75 | - and raw |
76 | - Implment the maxread threshold (Indicates how much can | |
77 | be read from a source before it stops reading from its | |
78 | underlying source. For making sure only the relevant | |
79 | data is read from a socket for example. | |
80 | ||
b921d414 AMH |
81 | Enhanched internal structure: |
82 | ||
83 | MultiImage & metadata support: | |
84 | - Figure what interface should be between C and perl? | |
85 | - How to store data in the C interface for tags/metadata? | |
86 | Support tiff's madness, i.e. tags and options. | |
87 | - Error handling, make a general i_errstr object and arrange | |
88 | such that each image has an i_errstr object to hold its | |
89 | local errors? | |
90 | - SEE design/represent.txt for proposed new structure and | |
91 | interface design that takes these factors into account. | |
faa9b3e7 TC |
92 | - define common i_* tags for specifying attribute common among images |
93 | like spatial resolution (implement for other image types, especially | |
10461f9a TC |
94 | TIFF) (Spatial resolution is supported for all types that support |
95 | it - are there any other common properties we can add?) | |
faa6fa9b | 96 | - implement the i_incomplete tag for other formats |
b921d414 AMH |
97 | |
98 | New Features: | |
a106216b | 99 | - Add mng support, pcx and aalib support. |
13db6021 TC |
100 | - Windows icon files (.ico) |
101 | - ILBM (Amiga) images | |
102 | - photoshop files (I think I've seen docs) | |
103 | - XBM | |
104 | - FITS | |
105 | - WMF (extract bitmap data on read) | |
106 | - gzip or bzip2 compressed raw | |
10461f9a | 107 | - postscript for output |
ee6f9750 | 108 | - PAM file support (man pam in recent PNM tools) |
5f5fe73e | 109 | |
b921d414 AMH |
110 | - Transforms, interpolated multidimensional lookup tables. |
111 | Usefull for CMYK <-> RGB table lookup. | |
112 | ||
a106216b | 113 | - advanced font layout (spacing, kerning, alignment) (Artur?) |
faa9b3e7 | 114 | |
bf9dd17c | 115 | - ways to check if characters are present in a font, eg. checking if |
9c5ed9a7 | 116 | ligatures are present (done for FreeType2) |
bf9dd17c | 117 | |
faa9b3e7 TC |
118 | - font synthesis - synthesize a bold or slanted font from a normal font |
119 | (or even from an existing bold or slanted font) | |
bf9dd17c | 120 | |
faa9b3e7 | 121 | - utf8 support for text output |
9a71bc09 | 122 | (available for FT1, freetype2, should be easy for Win32) |
c855ad0e TC |
123 | |
124 | - easy interfaces for text output: | |
125 | - align text around point, including: | |
126 | - left, center, right horizontal alignment | |
127 | - top, center, baseline, bottom alignment | |
128 | - choose whether to base alignment upon character cells or font | |
129 | metrics to avoid spacing problems between lines | |
130 | - fill a box from text, with newline handling | |
131 | - an option to just return the information that would be used to | |
132 | output the text, so it can be used for sizing calculations | |
133 | - how much text fit in the box/how much space is left in the box | |
134 | - fill a box with rich text (size and font changes) | |
135 | - as above | |
136 | - wrapping around boxes/images | |
137 | - pod2Imager :) | |
138 | ||
139 | - tools to get more information about fonts/characters: | |
140 | - name of font "Arial Bold Italic" vs "arialbi.ttf" | |
141 | - ABC widths for characters (currently the only way to get the C width | |
142 | for a character is to get the width with a following space and without | |
143 | and then compare) | |
144 | - character names | |
145 | ||
146 | - encodings for text output (maybe using the Encode module to work | |
147 | between encodings) | |
faa9b3e7 TC |
148 | |
149 | - image rotation, 3 ways of doing rotation: | |
faa9b3e7 TC |
150 | - rotation by shearing, which produces makes lengths in the image larger, |
151 | but could be useful | |
a010a7d3 | 152 | (2 of the 3 have been done) |
faa9b3e7 | 153 | |
9c5ed9a7 TC |
154 | - read_multi() needs to handle other multi-image types, |
155 | (handles TIFF and GIF) | |
b921d414 | 156 | |
9c5ed9a7 | 157 | - write_multi() to save other multi-image types, (handles TIFF and GIF) |
8b695554 | 158 | - pnm binary formats support multiple images per file |
f62b2d84 | 159 | |
362e7486 TC |
160 | - compose channels - build a new image based on channels from several |
161 | images | |
162 | ||
da77e827 TC |
163 | - arc outlines |
164 | ||
9a71bc09 TC |
165 | - complex lines/curves: |
166 | - thick lines: | |
167 | - dotted/dashed lines | |
168 | - doubled lines? | |
169 | - end-point controls (butt-end, square-end, round-end, pointy, arrows) | |
170 | - brush-lines (as with the Gimp, or Photoshop) | |
171 | - more complex with multiple strokes and various randomness as with | |
172 | Fractal Design Painter (or later versions of Corel Photo Paint) | |
173 | - complex line shapes: | |
174 | - lines | |
175 | - general curves (cubic or bezier, whichever is more general) | |
176 | - easy access to general curves: | |
177 | - points to make a nice curve from | |
178 | - various circular curves (centre, radii, start/end angles, | |
179 | direction) | |
180 | - Complex thick lines are probably more useful than brush-lines for | |
181 | the things I expect Imager to be used for. | |
182 | - http://www.develop-help.com/imager/strokes.png (.jpg for smaller version) | |
183 | ||
ea9e6c3f TC |
184 | - have Imager::Color{::Float}? use Graphics::ColorNames if present. |
185 | ||
b921d414 AMH |
186 | Clean up: |
187 | - Make sure everything is doable with the OO interface | |
5f5fe73e | 188 | i_flood_fill() for example. |
45a1d9d2 | 189 | - include low-level functions like gsamp() and so on |
f1ac5027 | 190 | |
b921d414 AMH |
191 | - Compile with memory debugging enabled and fix all leaks |
192 | ||
a106216b | 193 | - Add mycalloc() memory allocation wrappers. |
b921d414 AMH |
194 | |
195 | - should we overload <=> or cmp for Imager::Color objects? | |
196 | too many worms, leave it out | |
197 | ||
198 | - should the interlace option for reading raw images have | |
199 | symbolic names in the OO interface? | |
200 | ||
f2bc9b80 TC |
201 | - improve consistency in the interfaces, both in trying to use named |
202 | parameters where possible but also in using consistent names, eg. | |
203 | (tx, ty) vs (left, top) in rubthrough() vs paste(). Do we want a (simple) | |
204 | standard for this (suggested names)? Remember to preserve the old | |
205 | interface where possible. | |
b921d414 | 206 | |
c855ad0e TC |
207 | - try to clean up the inconsistencies between font types: |
208 | - utf8 (even if we just treat characters over 0xFF as missing for T1) | |
3799c4d1 | 209 | (done for FT2, FT1, T1) |
eeaa33fd | 210 | - transformations (done for FT2) |
3799c4d1 | 211 | - has_char() method (done for FT2, FT1, T1) |
c855ad0e | 212 | |
b921d414 | 213 | Format specific issues: |
b921d414 AMH |
214 | - provide patches for libgif and libungif that fix their bugs |
215 | and give a useful extension interface. Probe for the | |
216 | installation of the patches in Makefile.PL to let gif.c | |
217 | know what features it can use. | |
218 | ||
a106216b | 219 | - Add options for pnm writer to save in any of the p1..P6 |
b921d414 AMH |
220 | formats. Even if the input has 1 channel, write 3 and such |
221 | cases. Also allow ascii mode. Need to be able to write | |
222 | pbm images which needs ties to the quantization code. | |
223 | ||
a106216b | 224 | - save paletted images as paletted where that's supported. Done |
f62b2d84 | 225 | for gif/tga/bmp/tiff. Not done for png yet. |
f873cb01 | 226 | |
a106216b | 227 | - read other format paletted images as paletted images. This has |
f62b2d84 TC |
228 | been done for gif/tga/bmp/tiff formats but not for png. |
229 | ||
230 | - read/write 16-bit/sample images as such for tiff | |
27d9683e | 231 | |
faa6fa9b TC |
232 | - read more metadata from images, esp tiff tags, EXIF format information |
233 | from TIFF and JPEG. | |
234 | ||
7ac6a2e9 TC |
235 | - handle 16-bit/sample pgm/ppm files |
236 | ||
b921d414 AMH |
237 | Documentation: |
238 | - Add to the documentation | |
239 | - Write a tutorial? | |
faa9b3e7 TC |
240 | - sample code and Imager/Samples.pod describing them |
241 | - Imager/Cookbook.pod | |
b921d414 AMH |
242 | - Write a guide to installing the helper libraries |
243 | - Go through the entire project and add comments in pod | |
244 | so doco.perl can be used to read them. | |
faa6fa9b | 245 | - see the IRC log in design/doclayout.txt |
6d0ed98a TC |
246 | - method index? |
247 | - concept index? | |
ea9e6c3f TC |
248 | |
249 | Build/configure: | |
250 | - use prompt() (from ExtUtils::MakeMaker) for questions in Makefile.PL | |
251 | - use the library's mechanism's to find the library if needed, for | |
252 | example, freetype-config for FT2 | |
253 | - the freetype2 library is built as "freetype.lib" on Win32 and needs | |
254 | to be renamed to be found by the configuration process and included | |
255 | with -lfreetype. Try to work around that. | |
256 | - freetype2 and freetype1 tend to be installed in /usr/include/freetype2 | |
257 | and /usr/include/freetype directories, or similarly named (somedir/freetype | |
258 | for example), instead of putting these directly into the search path | |
259 | search for the freetype{2}?/someheader and then add the subdirectory if | |
260 | we find the file in that directory. | |
7ac6a2e9 | 261 | - switch to Test::More |
5e9890e1 | 262 | - change headers to use more unique re-include protection macros |
6b64de41 TC |
263 | |
264 | Old release checklists | |
265 | ---------------------- | |
266 | ||
267 | 0.44: (december 2004) | |
268 | - set i_format for every file type on read and test for it: | |
269 | - bmp - done | |
270 | - jpeg - done | |
271 | - tiff - done | |
272 | - tga - done | |
273 | - rgb - no read function anyway | |
274 | - png - done | |
275 | - gif - done | |
276 | - pnm - done | |
277 | - raw - done | |
278 | - check each file reader for possible integer overflows | |
279 | - bmp - done | |
280 | - tiff | |
281 | - tga | |
282 | - rgb | |
283 | - png | |
284 | - gif | |
285 | - pnm | |
286 | - check bmp code uses image data offset correctly - done | |
287 | - check quant code for integer overflows - done | |
288 | - check for old URLs (umich and imager.perl.org/~addi/...) - done | |
289 |