PeasyPrint Graphic/Photo Printing
PeasyPrint Graphic/Photo Printing
Update: PeasyPrint v3.1 has a new Fit tool. It determines in advance how you should up-scale an image to fit the target paper without overflowing the page - by width or height.
Update: PeasyPrint v2.9 adds the 5x7 paper size for photo printing. See the note below about Canon printers.
Update: PeasyPrint v2.7 can print a graphic stored as a PDF file.
Update: PeasyPrint v2.6 has an option for printing a date stamp on the image. It appears in the lower left corner in white.
Update: See the hint here for gluing two photos together and printing them on the same piece of 4x6 paper.
Update: PeasyPrint v2.4 has a new CUPS button. This gives you quick access to CUPS for changing your printer settings.
-----------------------------
PeasyPrint is a little program that can print a graphics image at a specific size. For example, it can print a JPEG photo so the width on the paper is exactly 4.0 inches. PeasyPrint will not change the aspect ratio of the image. You can specify the width or the height of the printout, but not both. The image is printed at the centre of the page.
You can run PeasyPrint several ways:
1. From the Graphic menu.
2. From the command line with "peasyprint" or "peasyprint filename"
3. From mtPaint. Go to File > Actions > Configure > Print image. Change the command to "peasyprint %f".
The easiest procedure is to start PeasyPrint in one window and the folder containing your images in another. You can then drag files directly into the file selection box.
---------------------------
If you have digital photos in a 2x3 aspect ratio, PeasyPrint is a quick tool for printing on 4x6 photo paper. There are two steps.
1. Run the CUPS setup wizard and open the Options page for your printer. Look for choices like Media Size and Media Type. Set them for 4x6 photo paper. Pick a size WITH borders. If that prints correctly, try borderless. Note: Brother printers must be configured differently. See below.
2. Run PeasyPrint. Select a width of 4 inches. If the photo is in landscape orientation, check the Rotate box. Select your printer and 4x6 Photo Paper.
Hint: Leave the Rotate box permanently checked. Both portrait and landscape orientations will print correctly on 4x6 paper.
------------------------------
Another useful tool for manipulating your photos is RPhoto. It can crop an image in a fixed 2x3 aspect ratio so it is ready to print on 4x6 paper. Download an RPhoto PET here. Also, see the discussion here about working with other paper sizes.
-----------------------
Gutenprint Drivers: These drivers do not produce good quality prints. You will have better results using the printer manufacturer's own driver.
----------------------------
Brother Drivers: When you send a job to a Brother printer, the CUPS options are ignored. Instead, the printer uses a configuration file in the folder /usr/local/Brother/.../inf named brxxxrc. With newer models, look in /opt/Brother. Open it in a text editor to see the current group of settings. The companion file brxxxfunc contains all the possible settings.
To print on 4x6 photo paper, use "PaperType=PostC4x6" or "PaperType="BrPost4x6_B" for borderless prints.
To get higher quality prints, set "Media=Glossy". You must then select the matching value for "RResolution". It might be "RResolution=Photo" or "RResolution=1200x2400dpi" depending on the printer model. Check the brxxxfunc file.
------------------------
Canon Printers: Some Canon MG series printers leave a wide lower margin that ruins photo printing by cropping off the bottom of the image. I can find no way to make the Linux driver print into this margin. As a work-around, you can do the following (although some people will object to the "scissors" part).
1. Purchase some 5x7 paper. It may be cheaper to get 8.5x11 sheets and cut them in half.
2. In CUPS, set the paper size to 5x7.
3. In PeasyPrint, set the image size to 4x6 as usual, but select 5x7 paper.
4. Print.
5. Trim the paper to 4x6 with scissors.
---------------------------
Update: PeasyPrint v2.9 adds the 5x7 paper size for photo printing. See the note below about Canon printers.
Update: PeasyPrint v2.7 can print a graphic stored as a PDF file.
Update: PeasyPrint v2.6 has an option for printing a date stamp on the image. It appears in the lower left corner in white.
Update: See the hint here for gluing two photos together and printing them on the same piece of 4x6 paper.
Update: PeasyPrint v2.4 has a new CUPS button. This gives you quick access to CUPS for changing your printer settings.
-----------------------------
PeasyPrint is a little program that can print a graphics image at a specific size. For example, it can print a JPEG photo so the width on the paper is exactly 4.0 inches. PeasyPrint will not change the aspect ratio of the image. You can specify the width or the height of the printout, but not both. The image is printed at the centre of the page.
You can run PeasyPrint several ways:
1. From the Graphic menu.
2. From the command line with "peasyprint" or "peasyprint filename"
3. From mtPaint. Go to File > Actions > Configure > Print image. Change the command to "peasyprint %f".
The easiest procedure is to start PeasyPrint in one window and the folder containing your images in another. You can then drag files directly into the file selection box.
---------------------------
If you have digital photos in a 2x3 aspect ratio, PeasyPrint is a quick tool for printing on 4x6 photo paper. There are two steps.
1. Run the CUPS setup wizard and open the Options page for your printer. Look for choices like Media Size and Media Type. Set them for 4x6 photo paper. Pick a size WITH borders. If that prints correctly, try borderless. Note: Brother printers must be configured differently. See below.
2. Run PeasyPrint. Select a width of 4 inches. If the photo is in landscape orientation, check the Rotate box. Select your printer and 4x6 Photo Paper.
Hint: Leave the Rotate box permanently checked. Both portrait and landscape orientations will print correctly on 4x6 paper.
------------------------------
Another useful tool for manipulating your photos is RPhoto. It can crop an image in a fixed 2x3 aspect ratio so it is ready to print on 4x6 paper. Download an RPhoto PET here. Also, see the discussion here about working with other paper sizes.
-----------------------
Gutenprint Drivers: These drivers do not produce good quality prints. You will have better results using the printer manufacturer's own driver.
----------------------------
Brother Drivers: When you send a job to a Brother printer, the CUPS options are ignored. Instead, the printer uses a configuration file in the folder /usr/local/Brother/.../inf named brxxxrc. With newer models, look in /opt/Brother. Open it in a text editor to see the current group of settings. The companion file brxxxfunc contains all the possible settings.
To print on 4x6 photo paper, use "PaperType=PostC4x6" or "PaperType="BrPost4x6_B" for borderless prints.
To get higher quality prints, set "Media=Glossy". You must then select the matching value for "RResolution". It might be "RResolution=Photo" or "RResolution=1200x2400dpi" depending on the printer model. Check the brxxxfunc file.
------------------------
Canon Printers: Some Canon MG series printers leave a wide lower margin that ruins photo printing by cropping off the bottom of the image. I can find no way to make the Linux driver print into this margin. As a work-around, you can do the following (although some people will object to the "scissors" part).
1. Purchase some 5x7 paper. It may be cheaper to get 8.5x11 sheets and cut them in half.
2. In CUPS, set the paper size to 5x7.
3. In PeasyPrint, set the image size to 4x6 as usual, but select 5x7 paper.
4. Print.
5. Trim the paper to 4x6 with scissors.
---------------------------
- Attachments
-
- peasyprint-3.1.pet
- Updated 2019-01-15
New Fit tool - (7.67 KiB) Downloaded 353 times
-
- peasyprint-3.0.pet
- Updated 2018-08-17
Allows other graphics formats, like GIF - (7.37 KiB) Downloaded 355 times
-
- screenie.png
- (34.88 KiB) Downloaded 2670 times
Last edited by rcrsn51 on Tue 28 Jan 2020, 06:22, edited 59 times in total.
updated wiki here-
http://puppylinux.org/wikka/UsingMtPaint
and here
http://puppylinux.org/wikka/PeasyPrint
http://puppylinux.org/wikka/UsingMtPaint
and here
http://puppylinux.org/wikka/PeasyPrint
Testing on Puppy 5.2.8
PeasyPrint 2.0 on Puppy 5.2.8, HD install, CUPS 1.4.3 with hpliplite-3.12.11, HP PSC-1300 all-in-one printer.
Works as advertised when printing .jpg photos from the computer. Unable to see difference when changing dpi from 600 to 1200. Camera connection not tested.
Works as advertised when printing .jpg photos from the computer. Unable to see difference when changing dpi from 600 to 1200. Camera connection not tested.
[i]Puppy 5.2.8.7, Full Install[/i]
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
Bonjour à toutes et tous,
Here is, for test, the script peasyprint 2.0 gettexted. Also joined the .pot file and the french locale file.
Thank you for trying it.
Cordialement
Here is, for test, the script peasyprint 2.0 gettexted. Also joined the .pot file and the french locale file.
Thank you for trying it.
Cordialement
- Attachments
-
- peasyprint2.0-gettexted.tar.gz
- (4.04 KiB) Downloaded 1273 times
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
PeasyPrint Graphic/Photo Printing
esmourguit wrote:...Also joined the .pot file...
Just a warningon http://bkhome.org/blog2/?viewDetailed=00137 BarryK wrote: It is only required to include a .pot file for binary executables.
For scripts, MoManager will generate the .pot file directly from the scripts.
It is only in some very rare cases that generation of the .pot file from the script(s) does not work, due to some weirdness in the script -- 'alsaconf' is one such weird script -- in that case we do have a pre-created alsaconf.pot file.
--------------------
edit
<button help>
<action>STARTHELP</action>
</button>
<button cancel>
<action>STARTCANCEL</action>
</button>
is simpler and working (translations of 'Help' and 'Cancel' are in GTK20.mo)
German translation attached (file created by momanager)
- Attachments
-
- MoManager-de_AT-peasyprint.tar.gz
- (1.74 KiB) Downloaded 1258 times
Thanks. I am slowly starting to understand NLS. I will release a new gettexted PET of PeasyPrint with a few other changes.
L18L: Can you answer a question? If I have an Xdialog message with line breaks, like
will it translate properly? I noticed that xgettext turns "\n" into "\\n".
Is "--no-wrap" required?
L18L: Can you answer a question? If I have an Xdialog message with line breaks, like
Code: Select all
Xdialog --title "PeasyPort" --msgbox "$(gettext 'Enter the IP and Port as single values or as ranges.\neg. IP 192.168.2.10-254 Port 1-1024\nYou cannot scan an IP range and a Port range at the same time.\nBut you can enter a list of ports using commas or spaces.\neg. Port 21,23 80 139\nThe Names button finds the NETBIOS names of machines\nthat are sharing files.\nUse Turbo mode to scan large port ranges (1-65535) of\nfast devices like other Linux computers.')" 0 0
Is "--no-wrap" required?
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
PeasyPrint Graphic/Photo Printing
It is translating properly without --no-wrap.rcrsn51 wrote:...will it translate properly? I noticed that xgettext turns "\n" into "\\n".
Is "--no-wrap" required?
IIRC: in former times the number of line breaks had to be same for msgid and msgstr (but that was just \n)
Additional line breaks have been made only in the translation.
I have used --left (looks better than default --center IMHO)
de.po wrote:# German translations for PACKAGE peasyport.
# Copyright (C) 2013 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# root <root@localhost>, 2013.
#
msgid ""
msgstr ""
"Project-Id-Version: peasyport VERSION\n"
"Report-Msgid-Bugs-To: rcrsn51@puppy.forum \n"
"POT-Creation-Date: 2013-02-20 16:58+0100\n"
"PO-Revision-Date: 2013-02-20 16:59+0100\n"
"Last-Translator: root <L18L@puppy.forum>\n"
"Language-Team: Austrian\n"
"Language: de_AT\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: peasyport:4
msgid ""
"Enter the IP and Port as single values or as ranges.\\neg. IP "
"192.168.2.10-254 Port 1-1024\\nYou cannot scan an IP range and a Port "
"range at the same time.\\nBut you can enter a list of ports using commas or "
"spaces.\\neg. Port 21,23 80 139\\nThe Names button finds the NETBIOS names "
"of machines\\nthat are sharing files.\\nUse Turbo mode to scan large port "
"ranges (1-65535) of\\nfast devices like other Linux computers."
msgstr ""
"IP und Port als Einzelwerte oder als Bereiche eingeben.\\nz.B. IP "
"192.168.2.10-254 Port 1-1024\\n\\nMan kann einen IP-Bereich und einen Port-"
"Bereich nicht zur selben Zeit scannen.\\nMan kann aber eine Liste von Ports mit Komma oder "
"Leerzeichen eingeben.\\nz.B. Port 21,23 80 139\\n\\nDer Button Namen findet die NETBIOS-Namen "
"von Maschinen, die Dateien bereitstellen.\\n\\nTurbo-Modus benutzen zum Scannen von großen Port-"
"Bereichen (1-65535) \\nschneller Geräte wie anderen Linux-Computern."
Glad you are beginning to like internationalization
- Attachments
-
- peasyport.png
- Xdialog --left
- (11.68 KiB) Downloaded 4016 times
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
Xdialog
I have been playing with width and heightrcrsn51 wrote:...Is "--no-wrap" required?
Xdialog --no-wrap --title "PeasyPort" --left --msgbox "$(gettext '...')" 20 70
is cutting off some text!
Xdialog --wrap --title "PeasyPort" --left --msgbox "$(gettext '...')" 20 70
is OK
But 0 0 is best, of course!
Nobody can know the length of a translation.
I was asking about this as an option to xgettextrcrsn51 wrote:Is "--no-wrap" required?
Code: Select all
xgettext -L shell --no-wrap .....
Is this a better way?
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
Not better for not so experienced translators who use text editor geany.rcrsn51 wrote:I was asking about this as an option to xgettextrcrsn51 wrote:Is "--no-wrap" required?Then the entire message is treated as one long string.Code: Select all
xgettext -L shell --no-wrap .....
Is this a better way?
Handling long lines was difficult for me too until I discovered the use of
Document > Line Wrapping
But in puppy momanager is calling xgettext to create the .pot file
(and msginit to create the .po file)
So I am voting now : Yes, no-wrap is betteron http://bkhome.org/blog/?viewDetailed=02549 last comment BarryK wrote:A note to L18L and others, you might find translation is more flexible if you use the '--no-wrap' option for 'msginit', as shown in my code in first post. It keeps paragraphs as one line, and gtkdialog takes care of the wrapping.
I'm trying to get Lucid to have a civilized conversation with a Canon A530 camera. Unfortunately that camera speaks only PTP, not UMS.
The thread :
http://murga-linux.com/puppy/viewtopic. ... start=2745
Refers to this thread, and mentions gphotofs-1.0.pet as one of the dependencies for for PTP digital camera support through peasyprint in Lucid.
I can't find gphotofs-1.0.pet anywhere.
However I was able to find a package called gphotofs-0.5-i486-precise.pet.
Do you have any suggestions? Will the earlier (?) version work?
Thanks, I appreciate any ideas.
PS - this is Lucid 5.2.5. I've tried newer pups, but keep coming back to this good friend.
The thread :
http://murga-linux.com/puppy/viewtopic. ... start=2745
Refers to this thread, and mentions gphotofs-1.0.pet as one of the dependencies for for PTP digital camera support through peasyprint in Lucid.
I can't find gphotofs-1.0.pet anywhere.
However I was able to find a package called gphotofs-0.5-i486-precise.pet.
Do you have any suggestions? Will the earlier (?) version work?
Thanks, I appreciate any ideas.
PS - this is Lucid 5.2.5. I've tried newer pups, but keep coming back to this good friend.