[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: convert jpeg to size suitable for printing the image on an A4 with lpr



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


Reply to: