~~~~~~~~~~~~~~~~~~~~~~~~~
The major change in the 0.8 release was a rewrite of the <img> tag search and
replace to use regexs rather than lxml. It was proving too hard to prevent lxml
from mangling low quality HTML in nasty ways. The new regex based
search/replace takes a lot of care to only modify what is necessary.
Side effects of this change are a reduction of dependencies and theoretically
better performance.
- Work with unclosed <img> tags (HTML4). [jinty]
- Re-write rewrite_image_tags to use regular expressions to find/mangle img
tags. As well aas removing the dependency on lxml this prevents a whole
class of bugs where lxml was changing the HTML source too much, see
http://bugs.repoze.org/issue103. Backwards compatibility for the
'ImageTransformationMiddleware' class was preserved by leaving the try_xhtml
argument in place. It is now a no-op.
[jinty]
- Make sure resizing preserves GIF transparency.
http://bugs.repoze.org/issue115
[jinty]
- Fix bug where <![CDATA[ escaped sections would be quoted and the CDATA
stripped. This causes foulups when quoting Javascript.
[jinty]
- Properly rewrite <img> tags with pixel (e.g. height="100px") attributes,
previously the url generated missed the regex resulting in broken images.
[jinty]
- Don't rewrite <img> tags with percentage sizes, only the browser knows
how big the images should be. See http://www.w3.org/TR/html4/types.htmlh-6.6.
[jinty]
- Use ``unicode_body`` all over to ensure correct
encoding. [jinty]
- Fixed bug where the leading slash of an absolute URL without the
FQDN would be wrongly removed. [damien]
- Fixed bug where the quality-parameter would not be coerced to
integer, required by PIL. [damien]
- Compatibility with Python 2.4. [malthe]