[patch] Cannot display embedded svg images if 'type' is specified

Koos Vriezen koos.vriezen at xs4all.nl
Tue Nov 18 19:34:19 GMT 2003


On Mon, Nov 17, 2003 at 04:50:49PM +0000, Adrian Page wrote:
> On Sunday 16 November 2003 11:58, Koos Vriezen wrote:
> > Wouln't it be better to either remove the "image/" special case (and let
> > khtmlimage show it for gif/png/jpeg), or have at least a
> > 'static bool RenderImage::supportMimeType(QString)'? This goes for
> > "image/x-eps" as well.
> 
> It looks like the special case was added for performance reasons, though I'm 
> not that familiar with khtml. Having a supportMimeType() sounds like a better 
> solution. I had assumed that svg was the only exception. 

Looking at kdelibs/mimetypes/image, I think there are more.
I guess 'if (KImageIO::typeForMime(serviceType) != QString::null)' would cover it.

Koos

> 
> Adrian




More information about the kfm-devel mailing list