kimgio: One library for 2 file types

Michael Ritzert kde at ritzert.de
Wed Dec 18 19:27:37 GMT 2002


Hi all,

JPEG2000 comes in two file formats: raw stream (j2k) and encapsulated (jp2). I 
have added a kimgio library to CVS that reads the latter format. As the 
underlying library (JasPer) is capable of handling both formats, I tried to 
delegate a second mimetype to the library. Doing this I encountered strange 
behaviour: If I install both j2k.kimgo and jp2.kimgio, only the former works. 
When I only j2k.kimgo from the install directory, only jp2 works (as 
expected).
Is delegating two mimetypes to one library not supported or am I doing sth. 
wrong?

Michael

The two .kimgo files:
[Image Format]
Type=jp2
Header=^\xFF
Name=JPEG 2000-Streams
Read=true
Write=false
Suffices=j2k,J2K
Mimetype=image/j2k
Library=kimg_jp2.la


[Image Format]
Type=jp2
Header=^\001\001
Name=JPEG 2000-Pictures
Read=true
Write=false
Suffices=jp2,JP2
Mimetype=image/jp2
Library=kimg_jp2.la





More information about the kde-core-devel mailing list