On Wed, 9 Aug 2006, decoder wrote: > > Hrm. How much, if any, image processing is duplicated across the > > imageinfo/OCR/fuzzyOCR plugins? It might be a benefit to merge them > > and expose some options to control which tests are performed. > > Well, for example with gif, FuzzyOCR first checks what file type it > has with magic bytes. So it can easily say for example the content > type does not match the file format, lets say if the file format is > gif, but content type says jpeg. This is important so you dont use > giftopnm on a jpeg or vica-versa. > > Secondly, FuzzyOCR invokes giftopnm, if the gif is corrupted, this > program fails. The plugin could therefore catch this error and knows > then that the gif is not a proper gif. Currently, before using > giftopnm, giffix is used to fix any broken gif files, it also reports > errors to STDERR. The plugin could catch these as well to know if the > gif was faulty or not. > > So the plugin would know if either the content-type doesn't match, or > if the picture is corrupted somehow, from the helper program outputs.
Could the image-size calculation stuff from the ImageInfo plugin be merged into this? I was envisioning all of those tests in a single plugin, with configuration options to control whether or not the OCR itself (fuzzy or not) takes place and whether the size analysis takes place and... There are lots of analyses that can be made of images; should there be multiple plugins, or should there be a more generic ImageAnalysis plugin (that perhaps has its own support for plugins...)? How many times do you want to do the image extract/paste-together/convert processing for a given message? -- John Hardin KA7OHZ ICQ#15735746 http://www.impsec.org/~jhardin/ [EMAIL PROTECTED] FALaholic #11174 pgpk -a [EMAIL PROTECTED] key: 0xB8732E79 - 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 ----------------------------------------------------------------------- The difference is that Unix has had thirty years of technical types demanding basic functionality of it. And the Macintosh has had fifteen years of interface fascist users shaping its progress. Windows has the hairpin turns of the Microsoft marketing machine and that's all. -- Red Drag Diva -----------------------------------------------------------------------