[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Supporting a new image format
From:       Nicolas Goutte <nicog () snafu ! de>
Date:       2002-12-14 22:12:08
[Download RAW message or body]

Do you have registered your kimgio to QImageIO in a way or another? Otherwise 
QImageIO will not know about it. 

(Sorry, I do not remember which function to call to register the kimgio 
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
	kdError() << "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 quite
> 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_read
> function, installed a jp2.kimgio, a share/mimelnk/image/jp2.desktop. Still,
> 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=2
> konqueror: [void KIO::PreviewJob::getOrCreateThumbnail()]·
> 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 <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic