[sane-devel] How to combine scanned images together and print them as a file
Stephen Liu
satimis at icare.com.hk
Mon Mar 3 08:01:01 GMT 2003
Hi,
Henning Meier-Geinitz wrote:
> - snip _
> Probably there are gui tools for that but I never used them.
>
> Here is a command line solution:
>
> convert image1.jpg image2.jpg [...] book.pdf
I performed following tests as 'user' in the directory /home/satimis/
where the .jpg files are kept
linux-1.jpg
linux-2.jpg
linux-3.jpg
linux-4.jpg
are 4 .jpg files scanned witn Xsane
# ls -l linux-1.jpg
-rw-r----- 1 satimis satimis 125631 Mar 2 22:54 linux-1.jpg
# chmod -c 0666 linux-*.jpg
mode of `linux-1.jpg' changed to 0666 (rw-rw-rw-)
mode of `linux-2.jpg' changed to 0666 (rw-rw-rw-)
mode of `linux-3.jpg' changed to 0666 (rw-rw-rw-)
mode of `linux-4.jpg' changed to 0666 (rw-rw-rw-)
# convert linux-1.jpg linux-2.jpg linux-3.jpg linux-4.jpg book.pdf
# convert linux-1.jpg linux-2.jpg linux-3.jpg linux-4.jpg book.pdf
convert: Corrupt JPEG data: premature end of data segment (linux-3.jpg)
[No such file or directory].
convert: Corrupt JPEG data: premature end of data segment (linux-3.jpg)
[No such file or directory].
a .pdf file has been created in the same directory but with following
mistake
linux-1.jpg Page-1 Ok
linux-2.jpg Page-2 3 same images lying side by side horizontally
linux-3.jpg Page-3 3 same images lying side by side horizontally
linux-4.jpg Page-4 3 same images lying side by side horizontally
I has viewed each original file separately and they are OK
Any mistake I have committed.
Besides if there are hundred pages can I perform follow;
# convert linux-*.*.jpg book.pdf
Thanks in advance.
B.Regards
Stephen
More information about the sane-devel
mailing list