LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2011, 06:08 PM   #1
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 548

Rep: Reputation: 116Reputation: 116
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!
 
Old 01-17-2011, 09:34 PM   #2
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,493

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
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
 
Old 01-18-2011, 06:30 PM   #3
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 548

Original Poster
Rep: Reputation: 116Reputation: 116
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.
 
Old 01-18-2011, 07:58 PM   #4
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,493

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

jlinkels
 
Old 01-29-2011, 06:41 AM   #5
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 548

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Print all PID folders from /proc line-by-line with this format (( PID: command-line )) courteous Linux - Newbie 7 12-12-2010 05:47 PM
Want to print fouth line after resulted line using grep with tail command saurabhmehan Linux - Newbie 10 08-05-2010 12:38 AM
Print images from command line at a specific size devnull10 Programming 4 01-09-2010 05:51 PM
Is there a command line tool to create images? J_Szucs Linux - Software 5 11-11-2004 03:51 AM
viewing images on the command line darkangel Linux - General 3 02-14-2002 11:44 AM


All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration