2010/1/27 Brian Sutherland <b...@bugs.repoze.org>:
> So in the next week or so, I will try re-implement regular expressions to 
> find and replace the
> <img> tags. Given that malthe seems to think it's a reasonable idea I'll do 
> it inside repoze.bitblt
> on a branch first.

Please do it on trunk, and do it well. I've wanted this for a long
time––and for squeeze, too.

> So, any ideas on how to robustly find <img> tags in HTML via regexes? Any 
> example
> implementations?

It's always robust since <img> is never a complex tag.

> Also, what kind of backwards compatibility does repoze.bitblt require? Should 
> I replace the
> existing rewrite_image_tags or implement a new one alongside and implement 
> some kind of
> configurability into ImageTransformationMiddleware?

The primary interface is HTML, so I think we shouldn't worry much
about the actual library code interface. I could be wrong on this

Repoze-dev mailing list

Reply via email to