Do you have registered your kimgio to QImageIO in a way or another? Other= wise=20 QImageIO will not know about it.=20 (Sorry, I do not remember which function to call to register the kimgio=20 plugins.) You can test with QImageIO with code like this: QFile file("test,jp2"); file.open(IO_ReadWrite); QImageIO imageIO(&file,NULL); if (imageIO.read()) kdDebug() << "Image loaded!" << endl; else =09kdError() << "Has not worked!" << endl; buffer.close(); (And thank you for adding JPEG 2000 to KDE.) Have a nice day/evening/night! On Saturday 14 December 2002 22:48, Michael Ritzert wrote: > Hi all, > > I'm trying to teach KDE to read JPEG 2000 via JasPer > (http://www.ece.uvic.ca/~mdadams/jasper/). I think things should work q= uite > well already... if only I could get KDE to use my KImgIO... > I've taken kdelibs/kimgio/tiff* as an example, written a kimgio_jp2_rea= d > function, installed a jp2.kimgio, a share/mimelnk/image/jp2.desktop. St= ill, > my code isn't called. .xsession-errors says: > konqueror: [void KIO::PreviewJob::determineNextFile()] stating > file:/home/ritzert/tmp/logo.jp2 > kio (KIOJob): stat file:/home/ritzert/tmp/logo.jp2 > kio_file: FileProtocol::stat details=3D2 > konqueror: [void KIO::PreviewJob::getOrCreateThumbnail()]=B7 > kio (KTrader): KServiceTypeProfile::offers( image/jp2,KFilePlugin ) > kio (KTrader): Returning 0 offers > kio (KTrader): No offers, or none allowed as default > > What am I missing? > > Michael > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > >> unsubscribe << >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<