mtPaint - Simple paint tutorial

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
bill
Posts: 490
Joined: Wed 28 May 2008, 15:32

mtPaint - Simple paint tutorial

#16 Post by bill »

Fine business on your "mtPaint - Simple paint tutorial"don570 ! ,which I use both mtpaint and Gimp in trying to make small pictorial "How to" files for doing
basic functions in Puppy. This to my way of thinking is the way to go to inform
those like myself who are less informed on the ins and outs of Puppy Linux.Keep up the good work ! cheers

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#17 Post by don570 »

I'm working on a tutorial to show how to put the head in a polygon.
I'll make a video with this script.
Let us make a polygon.
Open image file.
Show settings toolbar.

R G B image

Make a polygon shape with the polygon tool.

Copy shape to clipboard.
Create a new layer using the clipboard.

Choose Edit mask.
Make a rectangular selection around the head.
Choose Fill ellipse

Choose Gaussian blur two.

Choose edit selection.

Choose Gaussian blur one.
Choose edit image.
Right-click paint bucket.

Increase to Two hundred.


Paint with paint bucket tool.
Select all and copy to clipboard.
Paste into a new document.
The End.
Image
_________________________________________________

Here is my first try at a video. I'll try a second time with better
audio from http://www.fromtexttospeech.com/

http://www.datafilehost.com/d/189547fc

_____________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#18 Post by don570 »

A small change is all that is needed to make the star's color a color gradient.

Make sure that a radial gradient is chosen.
Color a red Color B yellow

To show the transparency as checkerboard pattern---> copy and
choose from the menu....

Edit > Paste in New Layer

Image

______________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#19 Post by don570 »

To make a crude polygon border a scaling can be used rather than cutting
a selection. Here's how I did it...

- open an image document
-make a star pattern with polygon selection tool
-copy the clipboard (Ctrl-C)

-Make a new layer

Layers > New Layer (from Clipboard)

Channels > Edit Selection

To remove jagged edges do a gaussian blur of one or two
Return back to editing the image
Channels > Edit Image
Set all (Ctrl-A)
-copy the clipboard (Ctrl-C)

Edit > Save Clipboard > 1


Scale the image to be bigger by going to the menu...
Image > Scale

To remove jagged edges do a gaussian blur of one or two
_____________________________________________________

Return back to editing the image by going to the menu...
Channels > Edit Image


To make the polygon region bigger

Image > Scale Canvas


Right-click the paintbucket icon. Set tolerance to 200.
Using paintbucket tool fill document with a color (or gradient color)
by clicking with paintbucket tool in yellow area.
Load the previous smaller polygon by going to the menu...

Edit > Load Clipboard > 1
You may move the selection if desired.
Make sure that selection is dropped in document.

Image

Select all (Ctrl-A)
-copy to the clipboard (Ctrl-C)
Make a new layer by going to the menu...
Edit > Paste to New Layer
Important note: Do not use the layers' menu

Save this layer to a file (PNG format with no transparency).

Now open the file in another paint program that supports PNG.
and transparency is shown by checkerboard pattern around the polygon region. Final result...

Image

bill
Posts: 490
Joined: Wed 28 May 2008, 15:32

mtPaint - Simple paint tutorial

#20 Post by bill »

@don570 :don ,for some reason I can't load a clipboard ? Can you explain what my problem may be.Thanks
Attachments
clipboarderror.jpg
(8.36 KiB) Downloaded 874 times

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#21 Post by don570 »

I've never seen that error message. I don't use that puppy interface.

However when I try to paste a 24bit color clipboard into a 256 color
document it doesn't occur. There is no error message for me.
The mtpaint handbook briefly mentions this.

____________________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#22 Post by don570 »

I have just discovered the wonderful tracing feature. it has been in
mtpaint since at least 3.40 but I didn't know about it :oops:

To start the tracing , load a photo into mtpaint.
___________________________________________________
Tip: create a new palette that will help reproduce the original flesh tones.

Palette > Create Quantized

This palette can be save to disk and used in other layers as well.
_____________________________________________
Next go to menu...
View > Tracing Image ...

Settings should be
Image
Offset about negative 200 pixels (i.e. move copy to the left)
Scale one
Tick box to see the result
Click the apply button to see a second copy image appear to left of original

Adjust the offset values to show the second image properly.

Image

Create a second layer by selecting from menu

Layers > New layer

Layers Settings: Make black the transparent color and click
'Show all layers' box so image underneath can be seen.



Start painting with paint brush. Dab on some flesh colors
and use smear brush ( see image)

Image

Paint with the color black to make the lower photo poke through.

Here is the top layer that has been saved . The transparent region
will allow the man's suit to show.

Image

For a more interesting background use the paint brush with the gradient
turned on.
Note : Gradient settings--->
Length = 50 Type = Linear Color A = blue Color B = white

Save composite file . Here is final image...

Image
Last edited by don570 on Sat 19 Jul 2014, 18:55, edited 1 time in total.

bill
Posts: 490
Joined: Wed 28 May 2008, 15:32

mtPaint - Simple paint tutorial

#23 Post by bill »

Thanks don570 for the info.I am still searching for the anomalies of the "clipboard" difficulties.After doing a fresh install of RSHs Lazy Puppy 202 ,and it's resident mtPaint 3.44.03 ,still no joy can I find :? I guess I will be required to continue using a combination of Gimp and mtPaint for "layering" as in simple tutorials like : [/url]http://www.murga-linux.com/puppy/viewto ... =94701[url] but no worries as there are many roads to a destination :wink: cheers

http://www.murga-linux.com/puppy/viewtopic.php?t=94701

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#24 Post by jamesbond »

I'm running the latest mtpaint 3.44.78.
Questions:
1) does the "create arrow", as documented in the manual, still work? If yes, how to do it? I activated the ruler tool, click to start the line, and then what to do? I pressed "A" (or "a") and nothing seems to happen.

2) the manual also talks about a cool feature of using the undo-buffer to capture multiple screenshots and save them in one go. How exactly to use this feature (if it still works in the latest mtpaint)?

Thank you.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

bill
Posts: 490
Joined: Wed 28 May 2008, 15:32

mtPaint - Simple paint tutorial

#25 Post by bill »

Ah 007,I doubt if Ms.Moneypenny knows the ins and outs to your questions :lol: This does however validate my belief that "user friendly" tutorials could be a Godsend to Puppy users if we could solicit folks "in the know" to post some.This is no small task and since Puppy is totally about "choice" then ??
Look like we need to ping on these developers but whether or not they have the time or inclination to respond is the question? cheers
Attachments
AboutmtPaint3.44.03.jpg
(23.11 KiB) Downloaded 929 times

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#26 Post by CatDude »

Hi

@ jamesbond
jamesbond wrote:I'm running the latest mtpaint 3.44.78.
Questions:
1) does the "create arrow", as documented in the manual, still work? If yes, how to do it? I activated the ruler tool, click to start the line, and then what to do? I pressed "A" (or "a") and nothing seems to happen.

2) the manual also talks about a cool feature of using the undo-buffer to capture multiple screenshots and save them in one go. How exactly to use this feature (if it still works in the latest mtpaint)?
Just installed the same version in Slacko-5.7
The arrows do work (i never knew it existed until i saw your post)

You were doing it right, though i suspect with the default settings you couldn't see it.
Open View > Show the Settings Toolbar (or press F7) and play with the Size and Flow
Left click to start the line, then when you have the other end where you want it,
either press 'a' or 's' depending on which style of arrow you desire.

As to your second question,
it looks like it's done via File > Export Undo Images
or File > Export Undo Images (reversed)...
again depending on what you want.

Hope this helps

CatDude
.
Attachments
arrows.png
(2.6 KiB) Downloaded 886 times
defaults.png
(16.05 KiB) Downloaded 951 times
as-used-for-arrows-pic.png
(16.52 KiB) Downloaded 837 times
undo-buffer.png
(48.08 KiB) Downloaded 871 times
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

Re: mtPaint - Simple paint tutorial

#27 Post by wjaguar »

bill wrote:I am still searching for the anomalies of the "clipboard" difficulties.
If mtPaint says "Unable to load clipboard", the simplest reason might be that there really is no clipboard to load. ;-) You cannot load a clipboard which you hadn't first saved, and you cannot import a clipboard when there is no image copied onto it from some other program.

Barring that, another reason can be that PNG support is broken. Can your copy of mtPaint save/load PNGs at all?
Breakage happens when two different versions of libpng get loaded at once: mtPaint having been linked with one, and GTK+2 with another. Output from "ldd mtpaint" will show whether this is the case.

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#28 Post by jamesbond »

CatDude wrote:You were doing it right, though i suspect with the default settings you couldn't see it.
Open View > Show the Settings Toolbar (or press F7) and play with the Size and Flow
Yes, this is the part that I missed. Thank you!
As to your second question,
it looks like it's done via File > Export Undo Images
or File > Export Undo Images (reversed)...
again depending on what you want.
I understand this part, but the question is, how do I get the screenshot from within mtpaint? I am under the impression if I can take new screenshots from within mtpaint, it will cause the previous one to be shifted into "undo buffer" which can later be saved with the command you mention - but how do I get these subsequent screenshots? (the first screenshot is easy - just mtpaint -s). Unless I understood wrong?

@bill - the reason I posted here is because I know experts like CatDude and the mtpaint maintainer are reading this thread :wink: (wjaguar is Dmitry).
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

#29 Post by wjaguar »

jamesbond wrote:how do I get these subsequent screenshots?
File->New->Grab screenshot

bill
Posts: 490
Joined: Wed 28 May 2008, 15:32

mtPaint - Simple paint tutorial

#30 Post by bill »

Thanks wjaguar : Just for clarification this is Lazy Puppy K2.6.33.2 from a fresh
install.I haven't been able to save/load a clipboard.
Attachments
Pfindlibpng.png
(45.48 KiB) Downloaded 854 times
lddmtPaint.png
(5.08 KiB) Downloaded 804 times

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#31 Post by RSH »

Output from "ldd mtpaint" will show whether this is the case.
Entering ldd mtpaint (or ldd mtPaint) into the terminal gives message (in Precise):

Code: Select all

# ldd mtpaint
ldd: ./mtpaint: Datei oder Verzeichnis nicht gefunden
# 
Datei oder Verzeichnis nicht gefunden means: no such file or directory found

Entering ldd /usr/bin/mtpaint will give result (in Precise):

Code: Select all

# ldd /usr/bin/mtpaint
	linux-gate.so.1 =>  (0xffffe000)
	libgif.so.4 => /usr/lib/libgif.so.4 (0xb7776000)
	libjasper.so.1 => /usr/lib/libjasper.so.1 (0xb7721000)
	libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb76bd000)
	libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0xb7666000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb75cc000)
	libz.so.1 => /lib/libz.so.1 (0xb75b6000)
	liblcms.so.1 => /usr/lib/liblcms.so.1 (0xb757d000)
	libpng12.so.0 => /lib/libpng12.so.0 (0xb7553000)
	libm.so.6 => /lib/libm.so.6 (0xb7526000)
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb70be000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb700f000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb6fee000)
	libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb6fa4000)
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb6f54000)
	libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb6f51000)
	libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0xb6e58000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0xb6d24000)
	libpthread.so.0 => /lib/libpthread.so.0 (0xb6d09000)
	libc.so.6 => /lib/libc.so.6 (0xb6b60000)
	/lib/ld-linux.so.2 (0xb7782000)
	libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb6b52000)
	libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb6b4c000)
	libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb6b2c000)
	libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb6a87000)
	libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xb6930000)
	libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb6903000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb68cf000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0xb68bd000)
	libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb68b3000)
	libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb68af000)
	libXi.so.6 => /usr/lib/libXi.so.6 (0xb689e000)
	libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb6895000)
	libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb688a000)
	libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb6886000)
	libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb6882000)
	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb687c000)
	libffi.so.6 => /usr/lib/libffi.so.6 (0xb6875000)
	libpcre.so.3 => /lib/libpcre.so.3 (0xb6839000)
	librt.so.1 => /lib/librt.so.1 (0xb6830000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb680f000)
	libdl.so.2 => /lib/libdl.so.2 (0xb6809000)
	libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb6771000)
	libselinux.so.1 => /lib/libselinux.so.1 (0xb6752000)
	libresolv.so.2 => /lib/libresolv.so.2 (0xb673a000)
	libexpat.so.1 => /lib/libexpat.so.1 (0xb6710000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0xb670b000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6704000)
# 
So ldd /usr/bin/mtpaint should do it.

Or just entering the directory first by: cd /usr/bin
and after this ldd mtpaint will work also.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#32 Post by jamesbond »

wjaguar wrote:
jamesbond wrote:how do I get these subsequent screenshots?
File->New->Grab screenshot
How can I miss that :oops: ... It working now :D Thank you wjaguar.

@don570 your tutorial is excellent, thank you for that. I think you should convert them into a more portable format than just forum posts.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

wjaguar
Posts: 359
Joined: Wed 21 Jun 2006, 14:16

#33 Post by wjaguar »

RSH wrote:libpng12.so.0 => /lib/libpng12.so.0 (0xb7553000)
So libpng is in the clear.
Then another possibility is an invalid clipboard save path. That is Preferences->Paths->Clipboard files, and on Puppy it should be something like "/root/.clipboard".

bill
Posts: 490
Joined: Wed 28 May 2008, 15:32

mtPaint - Simple paint tutorial

#34 Post by bill »

@ wjaguar :Just in passing ,I have looked in /root/.clipboard and don't see .clipboard ? in any of the distros I have booted ie Lazy Puppy,Slacko 5.6,puppy 5.2.8 and several others.I thought at first my old AMD64 was knackered but after trying mtPaint in an intel box,I continue to get the dreaded "can't load clipboard".Unless there are commands other than ctrl +F1 and Shift+ F1 etc. I reckon I will call this a lost cause and slink away :lol: If someone can post the exact distro with a functional clipboard (proven to be functional) or an exact command sequence,I will give that a try.Thanks to ALL for your patience and counsel.Cheers

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#35 Post by RSH »

In L.A.S.S.I.E. and/or Precise Puppy under mtPaint 3.44.13 saving a clipboard and loading it into another image loaded seems to work.

File .clipboard1 remains existing in /root after exiting mtPaint and can be loaded again after restarting mtPaint.

Maybe mtPaint in LazY Puppy is just too old (wasn't it 3.44.03?)?
Attachments
image-7.jpg
(44.88 KiB) Downloaded 706 times
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

Post Reply