This zsh works most of the time: then print the PDF.
I say "most of the time" as sometimes the image gets
cut in the edges - I don't know why.
jpeg2pdf () {
local pic=$1
local pdf=${pic:r}.pdf
gs -sDEVICE=pdfwrite \
-sPAPERSIZE=a4 \
-o $pdf viewjpeg.ps \
-c "($pic) viewJPEG showpage"
}
--
underground experts united
http://user.it.uu.se/~embe8573