mtpaint 3.49.12- April 2016

Paint programs, vector editors, 3d modelers, animation editors, etc.
Message
Author
User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#286 Post by MochiMoppel »

don570 wrote:Could you write that out as a line of code for me?
Three lines. But that's the whole script. :wink:

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

#287 Post by don570 »

I made the change so that a right click on folder of images is possible
to edit them..

mtpaint-mod-3.44.93 and mtpaint-mod-april64-3.44.93
(warning mtpaint-april64-3.44.93 will only work for april64 64 bit)

Available here : mydrive.ch

Username: porteus@don570
Password: porteus

______________________________________________

The explanation of how I did this is here

________________________

oui

#288 Post by oui »

Hi Don

Thank you for your efforts for mTpaint! I use it daily! But I mis 2 details:

a/ no short cut for "print that image"
b/ idem for "time delayed screen shot"

c/ the main windows opens on top left and covers almost completely the Puppy icones :oops: and the satellite window for it's tools covers the main commando bar from mTpaint including the important icones "copy" and "insert" :idea: ....

Kind regards

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

#289 Post by don570 »

I just make the pet and debian packages.


I assume that the windows open in the top left
so that mtpaint can be used in multiple operating systems
ie XORG isn't needed. By opening in the top left with small windows
a netbook could use mtpaint.

_______________________________________________

Several scripts delay the snapshot. Here's the simplest.

http://www.murga-linux.com/puppy/viewto ... 53927f0d09

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

#290 Post by wjaguar »

oui wrote:a/ no short cut for "print that image"
b/ idem for "time delayed screen shot"
Help->Keyboard shortcuts
c/ the main windows opens on top left and covers almost completely the Puppy icones :oops: and the satellite window for it's tools covers the main commando bar from mTpaint including the important icones "copy" and "insert"
Move/resize the windows to suit your taste. mtPaint will remember it for the next time.

oui

#291 Post by oui »

Hi Don and Jaguar,

thank you for the answer. I am continuously in Debian Jessie (or sometimes SID in the last time) in an puppy like minimalist installation with a lot of the goodies of Puppy (JWM, Seamonkey, rox, mTpaint etc.). Why original Debian? Using a powerful modern laptop, I will also test and use adapted app's being in 64 bit not available in Puppy's in 64 bit format. The language is German. I see no "help" or "Hilfe" and mTpaint remembers no precedent settings!

I also use daily Quirky Unicorn 6.0 (Quirky-5.99, the wonderful ISO with only 135 MB from BK, but without some goodies like mTpaint! If you add the KDE-sfs you get a very small KDE system 99 MB from Jejy with Konqueror, Kate, Okular, KolourPaint, Gwenview etc... Of course, KolourPaint also can make printscreens and resize them!) as it is compatible with the enormous depository (more than 400 app's and programs) from RSH through his «Archive-Unicorn-Install.tar.gz» ( http://www.datafilehost.com/d/f4612003 ) without some save file and give me for some things KDE app's and abilities. I did re add mTpaint of course ( :wink: RSH is a lover of music and graphic arts but, different from BK, doesn't really like mTpaint...): It is the BK implementation with a new initrd and the RSH tools, not an ISO from RSH. I don't remember the source but probably the *.deb 32 bit package from Ubuntu Utopic (unicorn). The problems are the same.

As I am a fan from eve and eveWEB as well as from mTpaint, I was hurt in this forum by users don't doing understand why I argument for mTpaint! Why? Probably because it is difficult and uncomfortable sometimes to be used, what else :roll: ! As I have no little netbook and as the little netbooks are not the really major among of users of graphic :!: systems (I also use a 7" tablet an HTC Flyer but I know: it is not really the best equipment for graphic arts at all, but reduce the use of graphic app's for all other user with good or best equipment for graphic invoquating netboots is not really the best strategy to make of a graphic app becoming the standard of the graphic app's field! Better the adequate hardware become good app's and the other will try to follow...):

my DELL laptop offers a laptop screen with 1920 x 1080 pixel (it is better as the most laptops...) and 8x Intel Core i7-2670QM CPU @ 2.20 GHz with 8.088 GB RAM is possibly the right client for Graphic app's... But if the app reduces it to a simple netbook it is non sens to opt for such a machine :idea: (note: it is the reason why I also use Debian 64 bit and not only Puppy / Quirky) !

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

#292 Post by don570 »

I see no "help" or "Hilfe" and mTpaint remembers no precedent settings!

Doesn't the window position write to the configuration file /root/.mtpaint ??

I wonder if your HOME folder is something different than /root
You can find your HOME folder

Code: Select all

cd ~
pwd

oui

#293 Post by oui »

Hi
Thank you don and thank you Jaguar. It was my error; my error came because «help» is not in the same field of the screen (completely right also resized mode on my very large screen! As it is a graphic app and the place is the major need in graphic :wink: my screen is often about a full screen and «help» is extremely far from the other commands of the commando line. And often an other app windows covers this point :roll: !). See the blue and red points on both pictures (my Debian screen and my Quirky screen using the beautiful background from RSH in his first version in the embedded things of him!).
Attachments
mTpaintHelpDebian.jpg
(59.43 KiB) Downloaded 344 times
mTpaintHelpQuirky.jpg
(52.72 KiB) Downloaded 341 times

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

#294 Post by don570 »

I did some timing tests on a folder of 300 jpegs. The first script just resized.
The second script resized then converted to png format.

Code: Select all



33 sec

#!/bin/sh
X=`date`
for ZAD in /root/Folder_jpg2580/*.jpg;do mtpaint --cmd  -file/open="$ZAD" \
-image/scale w=x0.5 -file/save ; done
Y=`date`
echo $X  $Y  >  times.txt
_________________________________________________

Code: Select all

45 seconds

#!/bin/sh
X=`date`
for ZAD in /root/Folder_jpg2580/*.jpg;do mtpaint --cmd  -file/open="$ZAD" \
-image/scale w=x0.5 -file/as format=png ; done
Y=`date`
echo $X  $Y  >  times.txt


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

#295 Post by don570 »

wjaguar Version 3.44.94 …

Fixed crash in Configure Actions (since 3.44.92)
Fixed unneeded escaping in inifile
Scripting now understands groups: "vert/x=10", "opacity/reverse=1"
Made custom gradients editor scriptable
Made brush selector and pattern chooser scriptable
Made skew tool, palette shifter, pref window scriptable
Separated out tool command selection and execution
Moved tablet detection and setup to V-code
new version at git
____________________________________

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

#296 Post by don570 »

I made some packages of newest version and loaded them to mydrive.ch

For Raspberry pi owners there are two versions....

One for fatdogarm and the other for raspian wheezy 2014 installed with the help of berry boot.


Available here : http://www.mydrive.ch

Username: porteus@don570
Password: porteus

_______________________________________________________

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

A new patch

#297 Post by wjaguar »

This fixes a hard-to-trigger bug in LSS writer (existing there since forever). Applicable to any version since 3.20.
Attachments
lss34494.patch.gz
(400 Bytes) Downloaded 189 times

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Re: A new patch

#298 Post by musher0 »

wjaguar wrote:This fixes a hard-to-trigger bug in LSS writer (existing there since forever). Applicable to any version since 3.20.
Hello all.
A recompilation of mtpaint-3.44.94 including wjaguar's lss16 patch above can be found here.
Enjoy!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

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

#299 Post by don570 »

Version 3.44.95

Fixed broken shapeburst floodfill (since 3.34.26)
Fixed bug in LSS writer (since forever)
Fixed hiding per-frame progressbars in Explode Frames
Scripting now understands lists: "(10,10 100,150 0,20)"
Made Select->All support lists (1-2 points select rectangle; 3+, polygon)
Made Edit->Paste support lists (1 point pastes, 2+ do brush pasting stroke)
Made Tools toolbar support lists (to place gradient, setup selection, or do a painting stroke)
Made palette shifter support lists (to setup it all at once)
Added scriptable alignment to Edit->Paste (Left/Right/Top/Bottom/Centre)
Made src/Makefile to be BSD-compatible again
Added generator script for help.c to docs/
______________________________________________

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

#300 Post by don570 »

mtpaint 3.44.95 available in first post
_______________________________

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

#301 Post 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\)
__________________________________________
Last edited by don570 on Fri 19 Feb 2016, 01:04, edited 2 times in total.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#302 Post 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.

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

#303 Post 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:

___________________________________________

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#304 Post 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.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

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

#305 Post 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.

Post Reply