Bug 117074 - Convert to djvu in the batch conversion dialog
Summary: Convert to djvu in the batch conversion dialog
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Bqm-Convert (show other bugs)
Version: 0.8.0
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-25 21:49 UTC by Nicolas Brisset
Modified: 2022-01-19 14:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Brisset 2005-11-25 21:49:12 UTC
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).
Comment 1 caulier.gilles 2005-11-25 22:19:58 UTC
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
Comment 2 Wilfried Huss 2005-11-26 12:35:54 UTC
KDE 3.5 also includes a DjVu-Viewer.
Comment 3 Nicolas Brisset 2005-11-28 10:11:42 UTC
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...
Comment 4 Leon Bottou 2005-11-28 16:32:34 UTC
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.
Comment 5 Leon Bottou 2005-11-28 16:33:51 UTC
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.
Comment 6 Wilfried Huss 2005-12-21 16:09:29 UTC

*** This bug has been marked as a duplicate of 118779 ***
Comment 7 caulier.gilles 2022-01-19 14:21:25 UTC
Fixed with https://bugs.kde.org/show_bug.cgi?id=118779