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

2015-08-16 Thread Emanuel Berg
Emanuel Berg writes: > 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 ... This hack still hasn't failed me. First, I do a PDF that is A5 (i.e., smaller than A4). Then I print it on a regular A4. #

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

2015-08-14 Thread Emanuel Berg
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 viewjpe

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

2015-08-12 Thread Emanuel Berg
I wrote this zsh wrapper to `convert' to do it. With the 72 PPI resolution, the image get smaller! With the 200 PPI resolution, the image gets bigger, and it looks good when viewed with feh, but when I print (with lpr) the increased-size image gets split up in two parts on the paper with a black