Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 13760  / 2 Years ago, mon, december 6, 2021, 4:34:02

I have an image, about 300x300 pixels large. I want to print as many copies as possible on a single page (I am planning to cut them apart with scissors afterwards).



Is there a way to do this? Is there a way to generate a PDF with copies (without opening something like gimp and manually doing copy-paste work).


More From » printing

 Answers
4

You can use ImageMagick's montage tool.




  1. Install the imagemagic tools



    sudo apt-get install imagemagick

  2. Combine your images. I have created this image, called foo.png as a demonstration:



    enter image description here



    Run montage, telling it to make 3 rows of 5 images each (-tile 3x5), keeping the original size of the image (-geometry 300x400 and give it the same image 15 times as input:



    montage -geometry 300x400 -tile 3x5 foo.png foo.png foo.png foo.png foo.png foo.png foo.png foo.png 
    foo.png foo.png foo.png foo.png foo.png foo.png foo.png montage.ps


    The result is:



    enter image description here


  3. Since that creates a postscript file (the language printers speak), you can print it directly from the command line using tools like lp or enscript. I don't have a printer at the moment so I can't check but this should work



    lp montage.ps


    or



    enscript montage.ps


[#26556] Monday, December 6, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lishrag

Total Points: 306
Total Questions: 109
Total Answers: 125

Location: Saint Lucia
Member since Wed, Feb 8, 2023
1 Year ago
;