Version: 0.42 (using KDE KDE 3.2.3) Installed from: Debian stable Packages Compiler: Mepis LInux - no compiler OS: Linux Using Kooka 0.42 on KDE 3.2.3 on Mepis Linux I was just wondering about why the ability to save as a tif file hasn't been included in kooka ? You can scan in binary/b&w mode but what format can it be saved in as a b&w image file ? The scanimage command has the option to output as tif. A great job has been done on the app, with a lot of progress. G4 compressed tif files are small and can be at 600dpi, quite easily. I used to work for a company supporting professional printing packages that work with the G4 tifs so because of size and quality. A 600dpi uncompressed binary tif, can be 4.2M, a greyscale tif is 34M so when a G4 compressed tif is around 90K, it is a huge difference in size. G3 compression reduces it to about 200K. A 600dpi pnm file is also 34M, binary is 4.1M, Jpeg greyscale is 3.2M, binary is about 1.3M. A long way from 90K, so unless for license restrictions, it seems silly to me, not to be able to save as a G4 compressed tif from xscanimage or kooka, hence the script. I found a way for this script to work with whichever sane scan device you may have, though not perhaps the most beautiful, it works and I adapted it to output to G4 compressed pdf to. 2 scripts which I saved to my /usr/bin directory. --------------------------------------------- tifscan.sh #!/bin/sh usage() { echo "Usage: tifscan {nameofimage.tif}" } #test to see if a filename has been entered if [ $# -lt 1 ] ; then usage ; exit 1 ; fi name=$1 #Read output of scanimage command to get scanner device name scanner='scanimage -f %d | sed -e 's/0/\n/g' | tail --lines=1 ' echo Now scanning your A4 document on $scanner #scan the A4 binary(b&w) file uncompressed at 300dpi to temporary file scanimage -d $scanner --mode binary --resolution 300 --quick-format A4 --format tiff >temp-$name #Use tif utility to convert the temporary binary tif to a G4 compressed tif and then delete the temporary file tiffcp -c g4 temp-$name $name rm -f temp-$name # display resulting G4 tiff file kfax $name ---------------------------------------------- pdfscan.sh #!/bin/sh usage() { echo "Usage: pdfscan {nameofimage.pdf}" } #test to see if a filename has been entered if [ $# -lt 1 ] ; then usage ; exit 1 ; fi name=$1 #Read output of scanimage command to get scanner device name scanner='scanimage -f %d | sed -e 's/0/\n/g' | tail --lines=1 ' echo Now scanning your A4 document on $scanner #scan the A4 binary(b&w) file uncompressed at 300dpi to temporary file scanimage -d $scanner --mode binary --resolution 300 --quick-format A4 --format tiff >temp-$name.tif #convert to pdf with G4 compression tiff2pdf temp-$name.tif -p A4 -q G4 -o $name #display pdf kghostview $name
*** Bug 85000 has been marked as a duplicate of this bug. ***
Kooka uses KImageIO for saving files, so the formats it can save are limited by what KImageIO supports. Of the common formats, neither TIFF, G3/G4 or GIF are supported for writing (PDF is a special case which would need to be handled separately). See http://api.kde.org/3.5-api/kdelibs-apidocs/kio/kio/html/classKImageIO.html for a complete list of the supported formats. Therefore, the way to get any image file format supported by Kooka will be to write an image file plugin for it. Keeping this wish open for the PDF format, but TIFF or G3/G4 will be unlikely to be implemented unless someone does write a plugin.
See also bug 71609 for DjVu format wish.