I vote for option 2. I think QImageReader and friends provide us with most of what we need. Do you know if the QimageReader::canRead can handle URIs? <br><br>Greg<br>-<br><br><div><span class="gmail_quote">On 1/14/06, <b class="gmail_sendername">
Szombathelyi György</b> <<a href="mailto:gyurco@freemail.hu">gyurco@freemail.hu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi!<br><br>I removed kimageio from kdelibs trunk yesterday, now I've got a problem of<br>converting some uses in kdebase.<br>Especially KImageIO::pattern() and KImageIO::mimeTypes() are problematic,<br>since there's no such concept in QImageReader and QImageWriter. Qt only knows
<br>the "format", which can be e.g "jpg", "png", etc...<br>Now I see 2 options:<br>1. Restore KImageIO and the .kimgio files, which has the neccessary<br>information, and clean up KImageIO<br>
2. Add the Qt image format name to the mime database, e.g. with<br>X-KDE-imageformat=jpg. Then new convenience function(s) can be added to<br>kmimetype.h, e.g allImageFormats() or sth. else.<br><br>Option 1 is simplest, but .kimgio files store nearly the same data as the mime
<br>files, except the image format name.<br><br>Any opinions? (or other ideas?)<br><br>Bye,<br>György<br><br>____________________________________________________________________<br>Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol
<br>Probald ki most! <a href="http://www.freestart.hu">http://www.freestart.hu</a><br><br></blockquote></div><br>