PeasyPrint Graphic/Photo Printing

Problems and successes with specific brands/models of printers
Message
Author
User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

PeasyPrint Graphic/Photo Printing

#1 Post by rcrsn51 »

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.

---------------------------
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.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#2 Post by rcrsn51 »

PeasyPrint 1.8 can now print directly from some digital cameras. See the first post for details. Testers are welcome.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#3 Post by darkcity »


User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#4 Post by rcrsn51 »

PeasyPrint has been updated to v1.9. Under certain conditions, the camera mounting option in v1.8 could accidentally delete all your photos! This would occur if you left the camera mounted and connected when you shut down your computer. This has been fixed in v1.9.

User avatar
Hotdog
Posts: 134
Joined: Fri 30 Sep 2011, 03:15
Location: Georgia USA

Testing on Puppy 5.2.8

#5 Post by Hotdog »

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.
[i]Puppy 5.2.8.7, Full Install[/i]

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#6 Post by rcrsn51 »

Thanks for testing. PeasyPrint doesn't claim to produce the same results as your printer's Windows software. But I have found that it's good enough for occasional use.

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#7 Post by esmourguit »

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 ;)
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]

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#8 Post by rcrsn51 »

esmourguit:

Thank you for doing this. I have sent you a PM with some questions about NLS.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

PeasyPrint Graphic/Photo Printing

#9 Post by L18L »

esmourguit wrote:...Also joined the .pot file...
on 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.
Just a warning :)
--------------------

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

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#10 Post by rcrsn51 »

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

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
will it translate properly? I noticed that xgettext turns "\n" into "\\n".

Is "--no-wrap" required?

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

PeasyPrint Graphic/Photo Printing

#11 Post by L18L »

rcrsn51 wrote:...will it translate properly? I noticed that xgettext turns "\n" into "\\n".

Is "--no-wrap" required?
It is translating properly without --no-wrap.

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 :D
Attachments
peasyport.png
Xdialog --left
(11.68 KiB) Downloaded 4016 times

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Xdialog

#12 Post by L18L »

rcrsn51 wrote:...Is "--no-wrap" required?
I have been playing with width and height

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. :wink:

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#13 Post by rcrsn51 »

rcrsn51 wrote:Is "--no-wrap" required?
I was asking about this as an option to xgettext

Code: Select all

 xgettext -L shell --no-wrap .....
Then the entire message is treated as one long string.

Is this a better way?

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#14 Post by L18L »

rcrsn51 wrote:
rcrsn51 wrote:Is "--no-wrap" required?
I was asking about this as an option to xgettext

Code: Select all

 xgettext -L shell --no-wrap .....
Then the entire message is treated as one long string.

Is this a better way?
Not better for not so experienced translators who use text editor geany.

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)
on 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.
So I am voting now : Yes, no-wrap is better

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#15 Post by rcrsn51 »

Thanks. I understand better now. I put the \n line breaks where they fit nicely in English. But in a different language, the translator might need to move them to other spots.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#16 Post by rcrsn51 »

PeasyPrint v2.4 is posted.

yogimel
Posts: 3
Joined: Wed 25 Dec 2013, 09:10

#17 Post by yogimel »

I have a HP DeskJet 990Cxi printer and if I use PeasyPrint (Ver. 2.4) it only prints in gray scale. If I print in Seamonkey color printing works.
I changed the default settings in CUPS to RGB color but still no change.

Any ideas?

Thank you.

Best Wishes
yogimel

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#18 Post by rcrsn51 »

PeasyPrint v2.6 is posted above. See the Update message.

ahoppin
Posts: 172
Joined: Mon 16 May 2011, 04:13

#19 Post by ahoppin »

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.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#20 Post by rcrsn51 »

Here is gphotofs.
Attachments
gphotofs-1.0.pet
(6.8 KiB) Downloaded 420 times

Post Reply