Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Dec 2014, 20:44
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Printers
PeasyPrint Graphic/Photo Printing
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 9355
Location: Stratford, Ontario

PostPosted: Fri 22 Jul 2011, 09:14    Post subject:  PeasyPrint Graphic/Photo Printing  

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.

Update: PeasyPrint creates some large temporary files, which are normally stored in /tmp. When working with big graphics files, you may run out of space and printing will fail. Here is a work-around.

1. Create the hidden file /root/.peasyprint
2. Enter the path of a location with lots of space, like /mnt/home
3. Save the file.
4. PeasyPrint will now use that temporary location instead of /tmp.

-----------------------------

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.

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.

-----------------------

The group of editing tools let you modify your image from within PeasyPrint. However, you probably don't want to use them on your original file, which would permanently change it.

Instead, click the Copy button. It makes a temporary copy of the current file named PPCOPY.JPG and stores it in the /tmp folder. Then go back to the Select box and choose PPCOPY.JPG instead. All the other PeasyPrint functions will now operate on the temporary file instead of the original.

------------------------

PeasyPrint can print directly from some gphoto-compatible cameras by using the Camera button. When you click it, your camera's memory card will be mounted at /mnt/camera. You can then load/view/edit/print images as usual. Clicking the Camera button a second time unmounts the card.

To use this feature in older Puppies (Lupu and earlier), you will also need the gphotofs-1.0.pet.

Since your camera's memory may not be writable from Linux, you should use the Copy operation if you want to edit the image.

-------------------------------------

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

------------------------
peasyprint-2.7.pet
Description  Updated 2014-10-06
Prints graphics stored as PDF files
pet

 Download 
Filename  peasyprint-2.7.pet 
Filesize  7.58 KB 
Downloaded  65 Time(s) 
screenie.png
 Description   
 Filesize   33.04 KB
 Viewed   637 Time(s)

screenie.png


Last edited by rcrsn51 on Thu 16 Oct 2014, 08:34; edited 46 times in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9355
Location: Stratford, Ontario

PostPosted: Sun 09 Oct 2011, 11:34    Post subject:  

PeasyPrint 1.8 can now print directly from some digital cameras. See the first post for details. Testers are welcome.
Back to top
View user's profile Send private message 
darkcity


Joined: 23 May 2010
Posts: 2481
Location: near here

PostPosted: Thu 19 Apr 2012, 09:12    Post subject:  

updated wiki here-
http://puppylinux.org/wikka/UsingMtPaint
and here
http://puppylinux.org/wikka/PeasyPrint

Twisted Evil

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 9355
Location: Stratford, Ontario

PostPosted: Tue 24 Apr 2012, 11:53    Post subject:  

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.
Back to top
View user's profile Send private message 
Hotdog


Joined: 29 Sep 2011
Posts: 109
Location: Georgia USA

PostPosted: Wed 12 Dec 2012, 23:21    Post subject: 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.

_________________
Puppy 528, Full Install
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9355
Location: Stratford, Ontario

PostPosted: Thu 13 Dec 2012, 00:29    Post subject:  

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.
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Tue 12 Feb 2013, 06:17    Post subject:  

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 Wink
peasyprint2.0-gettexted.tar.gz
Description 
gz

 Download 
Filename  peasyprint2.0-gettexted.tar.gz 
Filesize  4.04 KB 
Downloaded  520 Time(s) 

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9355
Location: Stratford, Ontario

PostPosted: Tue 12 Feb 2013, 11:18    Post subject:  

esmourguit:

Thank you for doing this. I have sent you a PM with some questions about NLS.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: Wed 20 Feb 2013, 08:20    Post subject: PeasyPrint Graphic/Photo Printing
Subject description: pot
 

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

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)
MoManager-de_AT-peasyprint.tar.gz
Description 
gz

 Download 
Filename  MoManager-de_AT-peasyprint.tar.gz 
Filesize  1.74 KB 
Downloaded  494 Time(s) 
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9355
Location: Stratford, Ontario

PostPosted: Wed 20 Feb 2013, 10:10    Post subject:  

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:
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?
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: Wed 20 Feb 2013, 12:36    Post subject: PeasyPrint Graphic/Photo Printing
Subject description: line breaks and wrap
 

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 Very Happy
peasyport.png
 Description   Xdialog --left
 Filesize   11.68 KB
 Viewed   2044 Time(s)

peasyport.png

Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: Wed 20 Feb 2013, 14:27    Post subject: Xdialog
Subject description: --no-wrap
 

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
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9355
Location: Stratford, Ontario

PostPosted: Wed 20 Feb 2013, 14:36    Post subject:  

rcrsn51 wrote:
Is "--no-wrap" required?

I was asking about this as an option to xgettext
Code:
 xgettext -L shell --no-wrap .....

Then the entire message is treated as one long string.

Is this a better way?
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: Wed 20 Feb 2013, 15:00    Post subject:  

rcrsn51 wrote:
rcrsn51 wrote:
Is "--no-wrap" required?

I was asking about this as an option to xgettext
Code:
 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
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9355
Location: Stratford, Ontario

PostPosted: Wed 20 Feb 2013, 15:18    Post subject:  

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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Printers
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1059s ][ Queries: 13 (0.0060s) ][ GZIP on ]