Author |
Message |
rcrsn51

Joined: 05 Sep 2006 Posts: 12800 Location: Stratford, Ontario
|
Posted: Sat 09 Mar 2013, 08:02 Post subject:
PeasyGlue |
|
Update: Graphic images are sometimes distributed as PDF files, so PeasyGlue v1.9 now accepts this format for input. Also, there is a new Print button. It sends the final glued image directly to PeasyPrint v2.5. To save time, the temporary raw PNM data is used instead of the JPEG/PNG file.
Update: PeasyGlue v1.8 lets you pick the amount of spacing between images. Note: The program has now moved to /usr/local/bin/peasyglue from /usr/sbin/peasyglue. Make sure that you are running the correct version. Delete the old one if necessary.
Update: Here is a money-saving tip for people who print their own digital photos. If your camera is set at the 4:3 aspect ratio, you can glue two photos together into a 4:6 image that is the exact size for photo paper.
-------------------------------------
PeasyGlue is a little app for joining graphic files together into rows or columns. By combining several rows vertically, you can also create a grid of images.
You can select images by using the File Chooser buttons. But it's easier to just drag files directly into the PeasyGlue input boxes.
To make a shortcut, drag the file /usr/share/applications/peasyglue.desktop onto the desktop.
PeasyGlue creates some large temporary files, which are normally stored in /tmp. When working with big graphics files, you may run out of space, and gluing will fail. Here is a work-around.
1. Create the hidden file /root/.peasyglue
2. Enter the path of a location with lots of space, like /mnt/home
3. Save the file.
4. PeasyGlue will now use that temporary location instead of /tmp.
--------------------------------
How to make printable graph paper
1. Download the attached square.png graphic file. It is a little black-and-white square, just the top and left sides.
2. Run PeasyGlue. Using the Pattern tool, create a grid with the desired number of squares. Save it as a PNG.
3. Run PeasyPrint. Print your grid to the desired size.
Here is an example. Suppose you want graph paper with 1/4 inch squares printed onto letter paper. Since many printers have an unprintable border, the maximum size may only be 8x10 inches. So your graph paper will have 32x40 squares. In PeasyGlue, make your pattern 40x32. In PeasyPrint, make the width 8 inches and the paper size Letter.
To add the missing lines on the right and bottom sides of the grid, do the following:
1. In PeasyGlue, save the grid in PNM format with filename out.pnm. (You need v2.2 for this option.)
2. Run the command: pnmpad out.pnm -right=1 -bottom=1 | pnmtopng > out.png
But suppose you want a grid of rectangles instead of squares. See the hint below. Then use the same procedure.
-------------------------
Hint: You don't need a separate graphics program to create your own "building blocks".
Here is some code to make a 100x50 rectangle with top and left sides:
Code: | pbmmake -white 99 49 | pnmpad -top=1 -left=1 | pnmtopng > rectangle.png |
Or see the SquareMaker app here.
------------------------
Description |
|
Filesize |
7.17 KB |
Viewed |
2 Time(s) |

|
Description |
|
Filesize |
111 Bytes |
Viewed |
100 Time(s) |

|
Description |
Updated 2019-01-15 Can save as raw PNM
|

Download |
Filename |
peasyglue-2.2.pet |
Filesize |
5.51 KB |
Downloaded |
90 Time(s) |
Description |
|
Filesize |
33.01 KB |
Viewed |
2064 Time(s) |

|
Last edited by rcrsn51 on Today, at 09:44; edited 55 times in total
|
Back to top
|
|
 |
anikin
Joined: 10 May 2012 Posts: 1020
|
Posted: Sat 09 Mar 2013, 08:52 Post subject:
|
|
rcrsn51,
This is one nifty app!
Makes posting images in a forum painless.
Thank you very much.
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 3450 Location: www.eussenheim.de/
|
Posted: Sat 09 Mar 2013, 08:56 Post subject:
Announcing PeasyGlue Subject description: i18n |
|
Code: | sed -i 's/frame Save the glued image in this file (JPG)/frame $(gettext 'Save the glued image in this file (JPG)')/' /usr/sbin/peasyglue | will complete internationalisation
my 0.02 EUR
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 12800 Location: Stratford, Ontario
|
Posted: Sat 09 Mar 2013, 09:00 Post subject:
Re: Announcing PeasyGlue Subject description: i18n |
|
L18L wrote: | Code: | sed -i 's/frame Save the glued image in this file (JPG)/frame $(gettext 'Save the glued image in this file (JPG)')/' /usr/sbin/peasyglue | will complete internationalisation
my 0.02 EUR  |
Thanks. I always seem to miss one! I will post a new version.
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 935
|
Posted: Sun 10 Mar 2013, 12:07 Post subject:
|
|
rcrsn51,
What a nice, handy, and compact image combiner. (It's very useful to me because I can never remember how to combine images using mtPaint.)
I assume the "glued" image could also be saved to a .png instead of .jpg by using "pnmtopng".
Another useful tool in the "Peasy" series, thank you.
Regards,
s
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 12800 Location: Stratford, Ontario
|
Posted: Sun 10 Mar 2013, 13:47 Post subject:
|
|
seaside wrote: | I assume the "glued" image could also be saved to a .png instead of .jpg by using "pnmtopng". |
Or I guess that v1.3 could give you that choice.
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 12800 Location: Stratford, Ontario
|
Posted: Fri 10 May 2013, 22:34 Post subject:
|
|
PeasyGlue v1.4 has a new feature for making grid images like this:
|
Back to top
|
|
 |
charlie6

Joined: 30 Jun 2008 Posts: 1221 Location: Saint-Gérard / Walloon part of Belgium
|
Posted: Thu 04 Jul 2013, 14:57 Post subject:
|
|
Hi rcrsn51,
thanks again ...great !!
here is the french tar.gz file ...
enjoy!
Description |
|
Filesize |
14.07 KB |
Viewed |
2420 Time(s) |

|
Description |
|

Download |
Filename |
MoManager-fr_BE-peasyglue-1.4.tar.gz |
Filesize |
1.67 KB |
Downloaded |
735 Time(s) |
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 12800 Location: Stratford, Ontario
|
Posted: Fri 05 Jul 2013, 07:28 Post subject:
|
|
Thanks. I noticed that you used PeasyGlue here.
|
Back to top
|
|
 |
DaveS

Joined: 09 Oct 2008 Posts: 3726 Location: UK
|
Posted: Fri 05 Jul 2013, 13:17 Post subject:
|
|
I LOVE this app but for me on Slacko 5.5 it does not append the file extension?
_________________ Spup Frugal HD and USB
Root forever!
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 12800 Location: Stratford, Ontario
|
Posted: Fri 05 Jul 2013, 13:30 Post subject:
|
|
DaveS wrote: | but for me on Slacko 5.5 it does not append the file extension? |
Are you talking about the name of the output file? The program does NOT automatically add an extension to the filename - you need to include it yourself.
|
Back to top
|
|
 |
DaveS

Joined: 09 Oct 2008 Posts: 3726 Location: UK
|
Posted: Fri 05 Jul 2013, 13:44 Post subject:
|
|
rcrsn51 wrote: | DaveS wrote: | but for me on Slacko 5.5 it does not append the file extension? |
Are you talking about the name of the output file? The program does NOT automatically add an extension to the filename - you need to include it yourself. |
Oh, OK, I get it. Selecting jpg or png sets the file type, it does NOT append that extension. That has to be added by hand . . . . .
_________________ Spup Frugal HD and USB
Root forever!
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 12800 Location: Stratford, Ontario
|
Posted: Mon 19 May 2014, 08:43 Post subject:
|
|
PeasyGlue v1.6 is posted above.
|
Back to top
|
|
 |
charlie6

Joined: 30 Jun 2008 Posts: 1221 Location: Saint-Gérard / Walloon part of Belgium
|
Posted: Wed 04 Jun 2014, 03:34 Post subject:
Re: PeasyGlue |
|
Hi Bill,
rcrsn51 wrote: | Update: Here is a money-saving tip for people who print their own digital photos. If your camera is set at the 4:3 aspect ratio, you can glue two photos together into a 4:6 image that is the exact size for photo paper. |
I'm much appreciating this new 1.6 update ...
...how could one ever be living without it...? (i'm joking of course )
Updating its french locale ... and wondering about the «Aspect» button ... does it stand for «gluing two photos together into a 4:6 image that is the exact size for photo paper» assuming the photo papers size to be "Letter" size? ( i'm ignoring what size is that paper here in Europe ...);
I've tried using this «Aspect» button after dragged two images.png (4:3 aspect ratio) in the upper fields + defined a file where to save the 4:6 image ...but nothing happened: no /tmp/gluetmp folder created nor any comment in the command line terminal ...
...Hmmm!...and ... what if there are more than two photos ... ? Does the new image also be shrinked into the Letter size?
Thanks for any answer!
Cheers, Charlie
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 12800 Location: Stratford, Ontario
|
Posted: Wed 04 Jun 2014, 07:03 Post subject:
|
|
You are right - the Aspect button is not well documented. It only works AFTER you have glued some images together.
I wrote it mainly to use with the Pattern feature. Suppose I make a pattern and want to print it on Letter paper using PeasyPrint. And I want it to fill the page.
With PeasyPrint, you can scale the width or height, but not both. It never changes the aspect ratio of the image. So if I want my pattern to fill the page without getting cropped, I need some information in advance about how to place it on the paper.
Printing images on photo paper is not a problem. I can use RPhoto and crop to the exact aspect ratio I need.
I recognize that the Aspect feature is not much value to an A4 user like yourself. Maybe I should remove the confusing Aspect button and only show that information after making a pattern.
I'm curious. In Europe is photo paper still 4x6, or do you buy a metric version?
Bill
Last edited by rcrsn51 on Wed 04 Jun 2014, 08:09; edited 1 time in total
|
Back to top
|
|
 |
|