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 Mon 20 Nov 2017, 10:00
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
mtPaint - Simple paint tutorial
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 7 [94 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
don570


Joined: 10 Mar 2010
Posts: 4755
Location: Ontario

PostPosted: Tue 29 Jul 2014, 16:46    Post subject:  

I was able to translate your page from Spanish to English by a useful trick
using Firefox.

I pasted the link into a google search box. Then I had to click
'repeat the search with the omitted results included. '

Then I saw a search result that had a translation.



or alternatively go to https://translate.google.com/ and paste address
______________________________________________
Back to top
View user's profile Send private message 
mister_electronico


Joined: 20 Jan 2008
Posts: 955
Location: Asturias_ España

PostPosted: Tue 29 Jul 2014, 17:17    Post subject: lol  

lol .... What is interesting is not the text but the images and what can be done with the command nconvert.

Just a command line become a picture as you want.

See pictures nconvert only can make endless combinations.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
don570


Joined: 10 Mar 2010
Posts: 4755
Location: Ontario

PostPosted: Mon 06 Oct 2014, 12:17    Post subject:  

Using mtpaint 3.44.89 or better it is possible to add some text
such as copyright notice to the top of a bunch of images stored in a folder.
The text is pasted at (0,0). This can be changed in script.
Modify the script if you wish. You can change the suffix and you can hange the image format for example png.

Instructions:
1) Put all images (jpegs in this example) in a folder my_images in /root.
2) Make color A a bright color such as yellow
3) Make and then save some yellow text to hard disk clipboard so it is available.
Menu > Edit > Save Clipboard > 1
4) Run script ...
Code:

#!/bin/sh
 for ZAD in /root/my_images/*.jpg ;do
  SUFFIX=_mod
  mtpaint --cmd -file/open="$ZAD" -e/'Load Clipboard'/1 -e/paste x=0 y=0   -selection/'Select None' -file/as="$ZAD"$SUFFIX
  mv -f  "$ZAD"$SUFFIX.jpg   "${ZAD%.jpg}"$SUFFIX.jpg
done




Here's an example of some yellow text added to a jpeg image.


Last edited by don570 on Mon 06 Oct 2014, 12:57; edited 2 times in total
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 4755
Location: Ontario

PostPosted: Mon 06 Oct 2014, 12:43    Post subject:  

minimum requirements mtpaint 3.44.89

Using inkscape(lite) you can make a border pattern (see below)



Launch mtpaint and open the svg image

Got to menu , open script window and modify script line

Menu > Image > Script

Code:
 -image/free=45  -image/resize=mirror w=x2


or if you wish to use the terminal to execute a simple command...
Code:
mtpaint --cmd -file/open=border.svg -image/free=45  -image/resize=mirror w=x2 -file/as=zad



The result shows tranparency

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


Joined: 10 Mar 2010
Posts: 4755
Location: Ontario

PostPosted: Mon 06 Oct 2014, 12:49    Post subject:  

Here's another example using an image ...
(Note that the image was saved from mtpaint
with black as the transparent color)



Got to menu , open script window and modify script line

Menu > Image > Script


Code:
-p/edit=a colour=black  -image/free=45  -image/resize=mirror w=x2


The final result..

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

Joined: 10 Sep 2011
Posts: 12591
Location: Mer méditerrannée (1 kms°)

PostPosted: Mon 06 Oct 2014, 13:25    Post subject: mtPaint tuto video .avi loaded.
Subject description: Merci Monsieur.
 

mtPaint tuto video .avi loaded. everething looks less complicated, however you speak english, and ... loud.
But i understand Quite everything thanks to images.
It will be my first lesson.

_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.
Back to top
View user's profile Send private message Yahoo Messenger 
highway_man

Joined: 06 Feb 2013
Posts: 20

PostPosted: Wed 08 Oct 2014, 22:13    Post subject:  

Following the "Hello World" example...

Quote:
Start with a simple 24bit RGB drawing in black and white
(see my snowman drawing).


Is there any chance that this single step can be broken out into an even simpler tutorial? I have managed three circles and two squares to make a snowman with a square hat. No arms and all lines have minimal width (no thickness).

Can mtPaint crop, re-size, move selection, create collage, etc? It was actually the collage that started me on mtpaint until I found that PeasyGlue can stictch together pictures. I still prefer to be able to arrange pictures graphically, that blindly. Thus my attempted quest into mtPaint.

****************
***...UPDATE...***
****************
The answer to my question can be found in the SourceForge documentation.
http://mtpaint.sourceforge.net/handbook/en_GB/chap_00.html
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 4755
Location: Ontario

PostPosted: Sat 25 Oct 2014, 14:32    Post subject:  

Here's a new way of making a text heading using emboss.
I'll go through the steps quickly.

Start with new document (RGB not indexed)

Channels > Edit Alpha (cleared)

Place size 72 text in document
(invert box ticked)



Apply a mtpaint script
Script window --->
Code:
 -effect/gaussian=17 -effect/emboss -effect/unsharp r=70 am=10.0  -effect/greyscale


Result of script....



Channels > Edit Image
Selection > Select all
Edit > Copy

Create a new RGB document.
Fill with a color that you desire for your text (in this example red).
Paste the clipboard into this new document
Effects > Transform color
Set contrast to very high . Slightly increase brightness and saturation.
Apply any other effects you wish.

Result of pasting into a red document.....


________________________________________________________

To make a cleaner outline of text characters

To make a cleaner outline of text characters use the 'paste swap' feature.
Make a text character (untick background) ,
then paste the text character into red document.


Use 'Paste swap' which is explained in sec 4.9 in mtpaint manual)
Press shift - <Enter> key

This transfers the red character to the moveable selection. The selection
can be save to your hard disk.

Edit > Save selection > 1

In my example I pasted the red character into a white document.(see image below)

___________________________________________


Black shadow feature

Edit: Just paste on blury black for a shadow

Effects > Erode is also useful


_______________________________________________

Last edited by don570 on Mon 27 Oct 2014, 20:43; edited 1 time in total
Back to top
View user's profile Send private message 
wjaguar

Joined: 21 Jun 2006
Posts: 335

PostPosted: Sat 25 Oct 2014, 15:43    Post subject:  

don570 wrote:
-effect/gaussian=17 -effect/emboss -effect/unsharp r=70 am=10.0 -effect/greyscale

An interesting way to simulate bumpmapping. Smile

However, it can be done nicer, using the same principle. Paste white text into black background, and then:
Code:
-effect/gaussian=17 -i/cl -i/cl -effect/emboss -effect/unsharp r=70 am=10.0 -i/cl -i/cl

Then copy the result, and paste it into destination using the "Grain merge" blend mode. See the example below.
(Also "Hard light" mode can be used. And colored text instead of white.)

Quote:
However there will likely be unwanted white pixels.

There shouldn't be, if you preserve the original clipboard with text cutout (say, save it, and reload when needed), instead of pasting it onto white background and then re-copying back.
grain.png
 Description   
 Filesize   14.66 KB
 Viewed   528 Time(s)

grain.png

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


Joined: 10 Mar 2010
Posts: 4755
Location: Ontario

PostPosted: Sat 25 Oct 2014, 16:17    Post subject:  

Here is the Gimp example that I wanted to duplicate.
Note that it uses the 'Grain merge mode'
http://gimpchat.com/viewtopic.php?f=23&t=6268
_______________________________________________
Back to top
View user's profile Send private message 
dejan555


Joined: 30 Nov 2008
Posts: 2797
Location: Montenegro

PostPosted: Sat 25 Oct 2014, 17:40    Post subject:  

Had a little fun doodling.
The thing you did before with mirroring can be done in a slightly different way.
If it's a square canvas (say 600x600) and you draw something in top-left quarter of image you can just duplicate layer and go to Image->Rotate clockwise
Repeat two more times till you have it in all quarters of image.
That's what I did for lines in corners outside the circle here.
Cat.png
 Description   
 Filesize   48.19 KB
 Viewed   495 Time(s)

Cat.png


_________________
puppy.b0x.me stuff mirrored HERE
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
dejan555


Joined: 30 Nov 2008
Posts: 2797
Location: Montenegro

PostPosted: Sun 26 Oct 2014, 08:11    Post subject:  

Here's another quick one
The big circle is made on first layer but everything else is added on new layers then copied and rotated.
With a little effort you can make interesting decorative images.
In gimp, after this step, I used to create a box out of this with map object function.

Hint for using Settings / Layers windows:
I usually make them top level windows then shade them when needed to get them out of the way so you only see a titlebar and expand when needed (a simple scroll up or down on titlebar in jwm or double-click in fluxbox - I guess this can be customized in window manager).

Separate windows were also the most hated feature in gimp but I see them as feature and don't use a single window mode even if introduced: this way I can maximize the image window and shade/unshade the toolbox window.
red-loop.png
 Description   
 Filesize   40.02 KB
 Viewed   350 Time(s)

red-loop.png


_________________
puppy.b0x.me stuff mirrored HERE
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
dejan555


Joined: 30 Nov 2008
Posts: 2797
Location: Montenegro

PostPosted: Sun 26 Oct 2014, 18:57    Post subject:  

Where can I read more about scripting abilities and what can I do with both image edited in mtpaint and what through commandline only?
EDIT: Found some info in other thread about cmd commands matching menu items, that's great, but how do you copy a layer for example or set transparent colour? This is only available from Layers window but not from menu.
Great job on scripting though, this will be very usefull.

_________________
puppy.b0x.me stuff mirrored HERE
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
wjaguar

Joined: 21 Jun 2006
Posts: 335

PostPosted: Sun 26 Oct 2014, 20:53    Post subject:  

dejan555 wrote:
but how do you copy a layer for example or set transparent colour? This is only available from Layers window but not from menu.

Which is precisely the problem. Wink

How to integrate layers window, settings toolbar window, and tools toolbar, into the system, still is an open question.
They are controlled through "View" submenu, and technically could be made addressable through it... but wouldn't that be a little bit illogical? To be calling all the functions of these windows through "-view/..." paths, that is?
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 4755
Location: Ontario

PostPosted: Mon 27 Oct 2014, 19:54    Post subject:  

Here is the answer to an email I received --> How to put a business logo
into an image. It's a good question so I made this tutorial ...

Goal : to make a company logo

1) make a screenshot of interesting face.

2) make rectangle beside the face in the color of desired text



3) The next step is to select some region
Channels > Edit Selection

4) Magnify to 300%
Use brush to select the logo.
Don't paint outside of logo .
(The selected region has a yellow tint.)

5) Gaussian blur of 2 or 3 --> this give slight blurring to edge of face

6) Place text in rectangle (invert must be ticked)



7) Channels > Edit Image

8 ) Selection > Select All

9) Click lasso tool (This puts selection automatically in clipboard)

10) Edit > Save Clipboard > 1
Now logo and text can be used in another document (see image for final result)


_________________________________________________________
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 7 [94 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.1690s ][ Queries: 12 (0.0181s) ][ GZIP on ]