Version: 0.8.0-rc (using KDE 3.4.2, Mandrake Linux Cooker i586 - Cooker) Compiler: Target: i586-mandriva-linux-gnu OS: Linux (i686) release 2.6.12-12mdk djvu is a most excellent format for images (typically 4/5 times smaller than jpg without real quality loss !). KDE already has a thumbnail kioslave for djvu, so that .djvu image thumbnails are shown. It would be very cool to include djvu in the list of export conversion format when the required external program is found (c44 from djvulibre).
If ImageMagick support this file format, it's very easy to add it on the plugin. Just any souce code lines are necessary. Tom, if you is interessed to do it... Gilles
KDE 3.5 also includes a DjVu-Viewer.
I can't wait to try the djvu reader (even though the djvulibre viewer works very well). However, this is more related with djvu documents than djvu images to replace jpg (typically, with just one image per file). Regarding the batch conversion, I have looked at the source code a bit, but it wasn't as straightforward as I had hoped :-( I could possibly make the required changes if someone points me in the right direction. From what I can see on the website, Image Magick does not support .djvu, but maybe it is possible to set up a delegate for that ? However, that sounds more complicated than just calling c44 to do that conversion. The syntax to convert image.jpg into djvu is : "c44 image.jpg" : quite easy :-) Note that contrarily to ImageMagick, not all input formats are accepted by c44, and in some cases it would be a bad idea to first compress into jpg (losing quality) and then djvu (loosing other sorts of information). The djvulibre developers are very nice (I had several mail exchanges with Leon Bottou, and I believe he even has a KDE svn account) and could probably help if required. One thing that should be possible from digikam to preserve image quality as much as possible is converting directly from raw or TIFF to djvu...
I understand that the proper place to do this is kdelibs/kimgio. This might reduce the need for the djvu thumbnail code kdebase/kioslave/thumbnail because of the generic imagecreator code. On the other hand, the current thumbnail code is nice because it only creates a small pixmap that is no bigger than the desired thumbnail. There are two ways to implement decoding. One is to use the executable (ddjvu) and the other one is to create a dependency on libdjvulibre.so using the ddjvuapi. For encoding, one would have to write a temporary PNM file and use c44 if it can be found.
Forgot to say the most important: - no time to do it now. - is it a good idea to do this in the midst of the kde4 work.
*** This bug has been marked as a duplicate of 118779 ***
Fixed with https://bugs.kde.org/show_bug.cgi?id=118779