Hi all,
I have patched getImageTag.py and BasicWidgets.py/getImageInfo to show 'properly' bmp images. The only thing I do is to verify if getattr(image,'height',0) returns None or not. if None is returned, I assign 0 to height and width, and returns the tag without width and height attributes. Maybe isn't the best way, but ...
If anybody needs the files, I will send it.
Florent Guillaume wrote:
Lennart Regebro wrote:
This comes from a Zope limitation. Zope doesn't seem to detect the dimensions of BMP images.
The OFS.Image object doesn't really support BMP files at all, afaik. For support for BMP files as images I think you would need to subclass it. At least this was the case with Zope 2.4, which was the last time I needed to support BMP files.
Actually probably a monkey-patch of OFS.Image.getImageInfo. If someone provides a patch to detect BMP I can integrate it in Zope.
Florent
-- Aitzol Naberan Burga�a CodeSyntax Aitzol Naberan <mailto:[EMAIL PROTECTED]> www.codesyntax.com <http://www.codesyntax.com> Tel: 943 82 17 80 _______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
