Page 16 of 19

Posted: Fri 12 Feb 2016, 01:11
by don570
Here are practice lines for the script feature
Selecting rectangles (or triangles)
Note that the outline will be in the colour A
When a cut is made , it exposes the colour A

Code: Select all

-select/all (11,22 95,55)  -select/"Outline Ellipse"
-select/all (11,22 95,55)  -edit/cut 
-select/all (11,22 95,55 11,166)  -select/"Fill Selection" 
-select/all (11,22 95,55 11,166)  -edit/cut 
-select/all x0=11 y0=22 x1=33 y1=66  -edit/cut 


Selecting a different index in palette for A or B is done either through
color chooser: "-edit/colour a=X b=Y"; or through invisible items in
"Palette" submenu: "-pal/a=X -pal/B=Y"

______________________

EDIT: here's some more
When the gradient is switched on the color B is important

Code: Select all


-select/all (11,22 95,55  11,145)  -p/edit=a colour=green -select/"Outline Selection" 


-p/edit=a colour=white  -select/all (11,22 95,55  11,145 22,178 44,222) -select/"Fill Selection"  


-select/all (11,22 195,55)  -p/edit=a colour=green -select/"Outline Selection" 
-p/a=7 -p/b=166  -select/all (11,22 95,55  11,145 22,178 44,222 66,299) -p/a=166 -select/"Fill Selection"  -edit/copy

-edit/paste -select/all (11,22 95,55  11,145)  -p/edit=a colour=green -select/"Outline Selection" 


-p/edit=a colour=white  -select/all (11,22 95,55  11,145 22,178 44,222) -select/"Fill Selection"  

Note that the size of the brush should be large when using the line tool.

Code: Select all

 -e/set grad=1 -e/tool grad \(0,55 144,45\)
  -e/tool line \(0,0 541,430\)
__________________________________________

Posted: Fri 12 Feb 2016, 19:43
by greengeek
Is there any way to identify the steps I have performed on an image? eg: an "undo/redo" text log that I can inspect?

Sometimes I play with an image (using a variety of different "effects" etc) and like the outcome but cannot be certain exactly what steps i took to get the image to that state. I am currently using mtPaint for preprocessing of an image for OCR purposes and I succeeded in getting a successful outcome using gaussian blur, kuhahara-nagao blur, resizing, contrast and gamma alterations but don't remember exactly in which order I used each effect and which magnitude of each I used.

I have exported the "undo" images which may help me to retrace my footsteps but if there is a text log showing exactly what I did it will be great to locate it.

Posted: Sat 13 Feb 2016, 18:21
by don570
I believe answer is no. I click on undo arrow in top menu bar
and that goes thru steps, but that is not what you want. :cry:

___________________________________________

Posted: Sat 13 Feb 2016, 18:54
by technosaurus
Netsurf browser has a history that shows the full navigation history as a "tree" everything else I have seen loses actions after undo as soon as another action is performed.

Posted: Sun 14 Feb 2016, 09:25
by wjaguar
don570 wrote:Here are practice lines for the script feature
For a larger demo of (latest updated) mtPaint scripting, you can look at this:
https://github.com/wjaguar/mtpaint_hand ... c/mdtim.pl
This script prints out the resulting commandline, prior to feeding it to mtpaint.

Posted: Fri 19 Feb 2016, 00:59
by don570
I ran the perl script and got the following output...

Code: Select all

# /usr/bin/perl mdtim.pl
#!/bin/sh
mtpaint --cmd -f/new w=713 h=455 =24 -e/set grad=1 -e/col a=7 b=115 -e/tool grad \(0,0 713,455\) -e/tool grad: type=lin ext=mirror grad=rgb opac=only -s/all \(1,1 711,453\) -s/fill -e/tool grad \(0,0 0,455\) -e/col b=8 a=93 -s/all \(81,51 611,423\) -s/fill -s/all \(635,212 689,262\) -s/fill -e/set grad=0 -e/col a=0 -s/all \(80,50 612,424\) -s/outline -s/all \(634,211 690,263\) -s/outline -e/freetype font='S Arial' size=14 back=-1 angle=0 -s/no -e/tool line \(74,424 612,424\) -e/freetype t=0 -e/paste centre right \(70,424\) -e/tool line \(74,399 612,399\) -e/freetype t=100 -e/paste centre right \(70,399\) -e/tool line \(74,374 612,374\) -e/freetype t=200 -e/paste centre right \(70,374\) -e/tool line \(74,349 612,349\) -e/freetype t=300 -e/paste centre right \(70,349\) -e/tool line \(74,324 612,324\) -e/freetype t=400 -e/paste centre right \(70,324\) -e/tool line \(74,299 612,299\) -e/freetype t=500 -e/paste centre right \(70,299\) -e/tool line \(74,274 612,274\) -e/freetype t=600 -e/paste centre right \(70,274\) -e/tool line \(74,249 612,249\) -e/freetype t=700 -e/paste centre right \(70,249\) -e/tool line \(74,224 612,224\) -e/freetype t=800 -e/paste centre right \(70,224\) -e/tool line \(74,199 612,199\) -e/freetype t=900 -e/paste centre right \(70,199\) -e/tool line \(74,174 612,174\) -e/freetype t=1000 -e/paste centre right \(70,174\) -e/tool line \(74,149 612,149\) -e/freetype t=1100 -e/paste centre right \(70,149\) -e/tool line \(74,124 612,124\) -e/freetype t=1200 -e/paste centre right \(70,124\) -e/tool line \(74,99 612,99\) -e/freetype t=1300 -e/paste centre right \(70,99\) -e/tool line \(74,74 612,74\) -e/freetype t=1400 -e/paste centre right \(70,74\) -e/tool line \(74,50 612,50\) -e/freetype t=1500 -e/paste centre right \(70,50\) -e/tool line \(115,424 115,430\) -e/freetype t=2004 -e/paste centre top \(97,430\) -e/tool line \(186,424 186,430\) -e/freetype t=2005 -e/paste centre top \(150,430\) -e/tool line \(257,424 257,430\) -e/freetype t=2006 -e/paste centre top \(221,430\) -e/tool line \(328,424 328,430\) -e/freetype t=2007 -e/paste centre top \(292,430\) -e/tool line \(399,424 399,430\) -e/freetype t=2008 -e/paste centre top \(363,430\) -e/tool line \(470,424 470,430\) -e/freetype t=2009 -e/paste centre top \(434,430\) -e/tool line \(541,424 541,430\) -e/freetype t=2010 -e/paste centre top \(505,430\) -e/tool line \(612,424 612,430\) -e/freetype t=2011 -e/paste centre top \(576,430\) -e/freetype t='mtPaint Development Timeline' size=22 -e/paste centre \(346,25\) -e/freetype t='Kilobytes' size=16 angle=90 -e/paste centre left \(16,237\) -e/freetype size=12 angle=0 -s/no -e/freetype t='Code' -e/paste centre left \(651,220\) -f/open='img/ball-green.png' undo=1 -s/all -e/copy -e/undo -e/paste centre left \(637,220\) -e/freetype t='Binary' -e/paste centre left \(651,237\) -f/open='img/ball-blue.png' undo=1 -s/all -e/copy -e/undo -e/paste centre left \(637,237\) -e/freetype t='Tarball' -e/paste centre left \(651,254\) -f/open='img/ball-yellow.png' undo=1 -s/all -e/copy -e/undo -e/paste centre left \(637,254\) -f/open='img/ball-yellow.png' undo=1 -s/all -e/copy -e/undo -e/paste centre \(87,420\) -e/paste centre \(94,410\) -e/paste centre \(105,397\) -e/paste centre \(115,393\) -e/paste centre \(135,379\) -e/paste centre \(158,374\) -e/paste centre \(186,365\) -e/paste centre \(198,359\) -e/paste centre \(219,369\) -e/paste centre \(261,355\) -e/paste centre \(327,329\) -e/paste centre \(464,302\) -e/paste centre \(611,277\) -f/open='img/ball-blue.png' undo=1 -s/all -e/copy -e/undo -e/paste centre \(87,418\) -e/paste centre \(94,399\) -e/paste centre \(105,368\) -e/paste centre \(115,367\) -e/paste centre \(135,360\) -e/paste centre \(158,343\) -e/paste centre \(186,346\) -e/paste centre \(198,340\) -e/paste centre \(219,340\) -e/paste centre \(261,325\) -e/paste centre \(327,314\) -e/paste centre \(464,297\) -e/paste centre \(611,281\) -f/open='img/ball-green.png' undo=1 -s/all -e/copy -e/undo -e/paste centre \(87,416\) -e/paste centre \(94,388\) -e/paste centre \(105,340\) -e/paste centre \(115,327\) -e/paste centre \(135,311\) -e/paste centre \(158,277\) -e/paste centre \(186,264\) -e/paste centre \(198,246\) -e/paste centre \(219,235\) -e/paste centre \(261,201\) -e/paste centre \(327,162\) -e/paste centre \(464,121\) -e/paste centre \(611,67\) -f/open='img/ball-green.png' undo=1 -s/all -e/copy -e/undo -e/freetype t='0.03' -e/paste centre bottom \(87,407\) -e/freetype t='0.23' -e/paste centre bottom \(94,379\) -e/freetype t='0.40' -e/paste centre bottom \(105,331\) -e/freetype t='0.50' -e/paste centre bottom \(115,318\) -e/freetype t='0.90' -e/paste centre bottom \(135,302\) -e/freetype t='2.00' -e/paste centre bottom \(158,268\) -e/freetype t='2.20' -e/paste centre bottom \(186,255\) -e/freetype t='2.30' -e/paste centre bottom \(198,237\) -e/freetype t='3.00' -e/paste centre bottom \(219,226\) -e/freetype t='3.10' -e/paste centre bottom \(261,192\) -e/freetype t='3.20' -e/paste centre bottom \(327,153\) -e/freetype t='3.30' -e/paste centre bottom \(464,112\) -e/freetype t='3.40' -e/paste centre bottom \(611,58\) -f/as=mdtim.png 
'font=S Arial' value does 
__________________________________________________

Posted: Fri 19 Feb 2016, 07:50
by wjaguar
don570 wrote:

Code: Select all

'font=S Arial' value does 
...
Looks like "MS core fonts" not installed. Or installed, but the directory not scanned by mtPaint (Paste text->Font directories->Create index).
You can just remove the "font='S Arial'", and last selected font will be used by default.

Posted: Sat 20 Feb 2016, 18:48
by don570
mtpaint version 3.44.96 available on first post.
_________________________________________

Posted: Wed 24 Feb 2016, 01:04
by don570
version 3.44.97 available at first post...

-resizes a SVG file when first loaded.
Just leave the dimensions at zero if you want the image unchanged.
----------------------------------------------------------------

Posted: Thu 25 Feb 2016, 01:16
by don570
The tracing feature is a great feature, but it is a bit confusing.

The offset is by default 0,0
and the image window is toggled off.

Remember to offset the original image ( by perhaps 200 pixels )

Toggle on the image window and create a transparent new layer
where you do your tracing or modifications.

You can then see the original beside the modified image as you work.

_________________________________

Posted: Thu 25 Feb 2016, 05:08
by wjaguar
don570 wrote:The tracing feature is a great feature, but it is a bit confusing.
I thought I got all relevant parts documented here:
http://mtpaint.sourceforge.net/handbook ... .html#SEC5

Posted: Fri 26 Feb 2016, 01:02
by don570
to wjaguar...

There is a confusing instruction in the manual. There is no mention of creating a new transparent layer on top of the original image, instead the instruction is...
Now create a new image, and then set the black background as transparent
For people who use gimp the instruction 'create a new image'
means a new document is started whereas in mtpaint it has a different
meaning.

I would suggest that you change the wording to 'create new layer
and make it transparent so original image will be seen.

______________________________________________


Also having an offset image that is untouched for a reference
isn't explained very clearly. The empty areas in the traced image can be
filled in with a gradient brush for an interesting effect.
________________________________________________________

Posted: Fri 26 Feb 2016, 13:18
by wjaguar
don570 wrote:For people who use gimp the instruction 'create a new image'
means a new document is started whereas in mtpaint it has a different
meaning.
What meaning besides the "File->New"??? OK, I'll add the precise menu path to the text, to remove all possible misinterpretation.
I would suggest that you change the wording to 'create new layer
and make it transparent so original image will be seen.
The (mis)use of layers for the purpose is possible, but it's absolutely not the point. A tracing image in mtPaint is not a layer in any way, shape, or form; if anything, it is a background, displacing the default checkered one.

Posted: Thu 03 Mar 2016, 22:57
by don570
New version 3.44.98 available on first post.
-new feature---> multiple scripts are stored and listed 8)
-new feature---> read a script stored on hard drive

Tested two new commands

Code: Select all

-i/script=/root/Script.ext
-i/scripts/2

Note that a hash mark in front of script name results in mtpaint ignoring it.
_______________________________

Posted: Tue 08 Mar 2016, 23:43
by don570
Version 3.44.99 available

Note that there are also 2 versions for Raspberry pi board--->

1) debian arm7 Wheezy OS - debian package
2) fatdog arm7 - special fatdog package

____________________________________

canal alpha for transparence

Posted: Wed 09 Mar 2016, 16:52
by Pelo
canal alpha for transsparence : in english i don't understand how to do.
Is there a video somewhere ?

Re: canal alpha for transparence

Posted: Thu 10 Mar 2016, 18:14
by wjaguar
Pelo wrote:Is there a video somewhere ?
Here is a demo script. It makes a hole. :-)

Code: Select all

-channels/new type=alpha state=set
-channels/'edit alpha'
-select/all (100,100,80,40)
-palette/swap -selection/'fill ellipse' -palette/swap
-channels/'edit image'

Posted: Thu 10 Mar 2016, 18:40
by don570
Note to pelo: I have tutorial site . Unfortunately some images need re-posting :cry:

The best way to imagine the alpha channel ---> a one-to-one correspondence with each pixel in the image.

alpha=1 implies pixel is shown to the user

alpha=0 implies that the pixel is not shown i.e. transparent

In-between values are possible. These are made by setting the opacity slider and brushing on the alpha channel.

Tip: A gaussian=2 effect in the alpha channel does a good job of removing jagged edges.

_______________________________________________

Posted: Mon 14 Mar 2016, 12:21
by charlie6
Hi don570,
don570 wrote:Version 3.44.99 available
on first post, i only find a link to version 3.44.89 to datafilehost website ...
would you mind trelling where to find the link to 3.44.99 ?

thanks for your time !

Charlie

Posted: Mon 14 Mar 2016, 17:55
by don570
I'm using a mydrive.ch account now.
It works well. 8)

I'll find the debian versions I made for the various Ubuntu distros
and post it there as well. They're old but they work well.

just check box and click on download button

http://www.mydrive.ch

user: porteus@don570
password: porteus