LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Print 2 jpeg images to 1 sheet from the command line (https://www.linuxquestions.org/questions/linux-newbie-8/print-2-jpeg-images-to-1-sheet-from-the-command-line-856905/)

devnull10 01-17-2011 05:08 PM

Print 2 jpeg images to 1 sheet from the command line
 
I want to create a re-usable script to do the following:

I have 2 jpg files, both different dimensions. I want to be able to print them both to a single sheet of a4 paper, one after the other. Must be command-line though. Also need to specify the printed dimensions of the images independently.

I have tried using montage to join them and then printing using lpr however for some reason it looks fine on the screen but the printout comes out all chopped up (parts of the bottom image over the top etc). I think this is a bug in gutenprint because it's fine viewed on screen.

Does anyone have any ideas what I might be able to use to do this?

Ta!

jlinkels 01-17-2011 08:34 PM

Use the imagemagick suite. First convert the two jpg's to the desired size, then paste them both on a new canvas which is printed. I know it works, but I am just too lazy to look up the correct syntax. imagemagick.org has the documentation and shows how to combine pictures.

jlinkels

devnull10 01-18-2011 05:30 PM

I tried that using montage but it doesn't work when printed. Looks fine on screen but comes out all jumbled up when printed. I think the conversion causes a bug in gutenprint or something.

jlinkels 01-18-2011 06:58 PM

No, I mean create one image, a JPG. When the JPG looks good on-screen it will print all right.

jlinkels

devnull10 01-29-2011 05:41 AM

That's the point, I create one jpg using montage and it looks fine on the screen. Then when printed it isn't.


All times are GMT -5. The time now is 12:19 AM.