mtpaint 3.49.12- April 2016

Paint programs, vector editors, 3d modelers, animation editors, etc.
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#261 Post by don570 »

to Charlie...

That explains why I had no problems with F7 key in tahr 583
whereas the start menu would pop up if I pressed F12
______________________________________________

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#262 Post by charlie6 »

Hi Technosaurus,
thanks for the TiP !
i was ignorant of this ! :wink:
Best regards
Charlie

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#263 Post by charlie6 »

Hi don570,
don570 wrote:to wjaguar:
I was able to save a color palette and then open it later in v 3.44.33.
No problems.
However I didn't try to edit the colors.
I'm sorry to ask/insist :oops: ...please would you mind telling in a more detailed way how you did to get A and B colours settings saved?

I indeed tried to
- save the palette to /root/mtpaintDEFpalette.gpl file;
-as also define a /etc/mtpaint/mtpaintrc filr with /root/.mtpaint content copied into it; and define a path for the default palette in Image/Preferences/Path...
- exit mtpaint hoping the settings were saved into /root/.mtpaint
but ... no hope
MtPaint keep sticked to Red/Black colours as color A and B.

Also read thoroughly the
http://murga-linux.com/puppy/viewtopic. ... 485#729485 but with no result ... :oops:

Thanks for any reply
Charlie

last edited:
yeah...! i discovered (more by exploring, trying, ...) that something happened using Ctrl-E and Crl-W, defining colors order in the palette, pressing the «Preview» button (otherwise nothing happens !) ... and then that defining a palettes default config file (/etc/mtpaint/palette.txt or /etc/mtpaint/palette.gpl) was possible.
So here can get the new color setting upon starting mtPaint ... :)

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

#264 Post by don570 »

to Charlie -

A couple of weeks ago when I was testing mtpaint's scripting abilities

I found that there was a difference in changing A and B colors with
a script command depending on whether in 256 color mode of RBG mode.
I wrote about it somewhere.

_______________________________

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

#265 Post by charlie6 »

Hi don570,
don570 wrote:to Charlie -
A couple of weeks ago when I was testing mtpaint's scripting abilities
I found that there was a difference in changing A and B colors with
a script command depending on whether in 256 color mode of RBG mode.
I wrote about it somewhere.
Thanks a lot for your time :) ! I found your posts which helped !
http://www.murga-linux.com/puppy/viewto ... 408#845408
as also Dmitry's one: --> Hi Dmitry, many thanks to you !
http://www.murga-linux.com/puppy/viewto ... 108#846108

for info purpose only here is my script for entering text:

Code: Select all

-edit/colour a=114 b=11
-edit/freetype  'Background colour'=11  font='Nimbus Sans L'   style='bold condensed italic' size=15  text="Here is some
text"
( i now believe this will render my wife's mtpaints use more easy :? :) )
Have fun! Charlie

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

Patch for 3.44.92-93

#266 Post by wjaguar »

A crash bug has been found, affecting "File->Actions->Configure" since 3.44.92. Patch is attached.
Attachments
fixact34493.patch.gz
(308 Bytes) Downloaded 156 times

User avatar
disallowed
Posts: 279
Joined: Sun 22 Mar 2015, 17:18

#267 Post by disallowed »

I have a folder containing grayscale JPEGs. I want to use mtPaint to convert them all to RGB colour space. Is there a command that do the job at once? Thanks.

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

#268 Post by don570 »

A crash bug has been found, affecting "File->Actions->Configure" since 3.44.92.
I ran this menu in puppy linux 4.3.1 (very old) and it worked using mtpaint 3.44.93.
For instance I clicked 'Execute' button and Gimp opened up the image
I was working on. No crash was seen.

_________________________________________

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

#269 Post by don570 »

I have a folder containing grayscale JPEGs. I want to use mtPaint to convert them all to RGB colour space.
I wrote a script to scale images in a folder.
The script launches mtpaint with --cmd option.
See this post and read the following posts as well.

http://murga-linux.com/puppy/viewtopic. ... 294#801294


The individual command to convert to RGB space is

Code: Select all

-image/'Convert to RGB'
You put quotes around the menu item or sometimes one word will work.

____________________________________________________________

I believe the full palette of colors will be accessible to you after this command , but if it's not then try

Code: Select all

-palette/'Load Default'
_______________________________________

User avatar
disallowed
Posts: 279
Joined: Sun 22 Mar 2015, 17:18

#270 Post by disallowed »

If I start mtpaint via terminal command, then the terminal doesn't seem active for new commands and there's not a # at the beginning of the line.

If I open a new terminal, I get this:

Code: Select all

sh-4.3# /root/a.jpg/'Convert to RGB'
sh: /root/a.jpg/Convert to RGB: Not a directory
sh-4.3# -/root/a.jpg/'Convert to RGB'
sh: -/root/a.jpg/Convert to RGB: No such file or directory
sh-4.3# -palette/'Load Default'
sh: -palette/Load Default: No such file or directory
sh-4.3# palette/'Load Default'
sh: palette/Load Default: No such file or directory
I also tried

Code: Select all

sh-4.3# mtpaint -/root/a.jpg/'Convert to RGB'
sh-4.3# mtpaint -palette/'Load Default'
These open an error window "Cannot open file".

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

#271 Post by don570 »

Note to disallowed :

There is two ways to run a script

1) internally in mtpaint --> look for 'Script' menu item

Examples to convert to RGB

-image/rgb

-image/'Convert to RGB'


2) a script file --> it must have its permissions set to 'execute'
Instructions: CD to folder containing script and in terminal type ./script_name


Here's an example to change a folder of greyscale jpegs made in gimp
to RGB greyscale images. Your script can be located anywhere.
Your images are located in /root/my_images/

Code: Select all

for ZAD in /root/my_images/*.jpg ;do
  SUFFIX=_mod
  echo ZAD= $ZAD
  mtpaint --cmd -file/open="$ZAD" -image/rgb  -file/as="$ZAD"$SUFFIX
  mv -f  "$ZAD"$SUFFIX.jpg   "${ZAD%.jpg}"$SUFFIX.jpg
done

I've noticed that if there is a jpeg image in the folder that is already RGB
then there will be an error written to screen
'-image/rgb' matches a disabled item
This isn't a serious error but I thought I'd mention it to you.
The original file is left alone.

_________________________________________________

User avatar
disallowed
Posts: 279
Joined: Sun 22 Mar 2015, 17:18

#272 Post by disallowed »

1) mtpaint --> Image --> Script

It opens a window:

Code: Select all

# Resharpen image after rescaling
-effect/unsharp r=1 am=0.4 -effect/unsharp r=30 am=0.1
Click OK and opens an error window:

Code: Select all

'-effect/unsharp' matches a disabled item
2) The script file worked and I successfully changed a folder of grayscale jpegs to RGB. Thanks a lot.

But still haven't found how to use the individual command. For example:

Code: Select all

sh-4.3# cd /root
sh-4.3# a.jpg -image/rgb
sh: a.jpg: command not found
sh-4.3# -image/rgb
sh: -image/rgb: No such file or directory

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

#273 Post by don570 »

Click OK and opens an error window:

Code:
'-effect/unsharp' matches a disabled item
There is nothing unusual about this message. The programmer is just
warning you that the operation isn't available. This is because images with
256 colors (or greyscale values) don't allow some effects.
Conversion to RGB fixes that.

Try typing

Code: Select all

-image/'Convert to RGB'
Another important feature of mtpaint --> each layer of an image is
independent and can be stored independently to disk.
The composite of all the layers can be stored to disk as well.

The benefit is the small amount of memory that mtpaint requires.
The smear paint brush is especially fast.

___________________________________

User avatar
disallowed
Posts: 279
Joined: Sun 22 Mar 2015, 17:18

#274 Post by disallowed »

Code: Select all

sh-4.3# -image/'Convert to RGB'
sh: -image/Convert to RGB: No such file or directory

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#275 Post by Semme »

Run that from within mtPaint >> Image >> Script, not your terminal.
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
disallowed
Posts: 279
Joined: Sun 22 Mar 2015, 17:18

#276 Post by disallowed »

Ok, I open the grayscale jpeg with mtpaint

>> Image >> Script

Run

Code: Select all

-image/'Convert to RGB'
-palette/'Load Default'
and that was it. Well, nice.

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

[SOLVED]

#277 Post by charlie6 »

Hi,
*********************************
last edited: having slept on it... :D
[SOLVED]: the answer is in /etc/mtpaint/palette.txt and palette.gpl
I remembered one day having saved a palette file (for some forgotten reason... :roll: ) from within mtpaint as the «default palette», which is now loaded at each new mtpaint run.
/root/.mtpaint wrote:defaultPalette = /etc/mtpaint/palette.gpl
/etc/mtpaint/palette.gpl's line 5 gives the RGB value for color Nr.0
in my case it is:
/etc/mtpaint/palette.gpl line 5 wrote: 36 36 36 Untitled
which is Black color hex#242424
Just editing line 5 to "0 0 0" will fix my question.
*********************************

running mtPaint 3.44.93:
I believe my color editor being somewhat messed up about black... :?:
how to get it reconfigured as expected?

I could fix this by deleting the current /root/.mtpaint (in fact renaming it another name).

On the current installation (and using the existing /root/.mtpaint file):
I have black Nr.0 being hex #242424 whereas it should be #000000 as for the first-install-black-background (black color #000000 which here is in position Nr 255 on the main windows left vertical border)

Using the palette editor Ctrl-W allows to get black Nr. = #000000 by choosing the upper-left black and dragging it to the black square numbered on the left scale + click on preview+ click on create +OK;

Then the black Nr.0 is set to #000000.
After exiting mtpaint does not keep the previous setting.


How could I get Nr0 to be #000000 ? which .mtpaints settings does determine this?

Thanks for any advice.

Charlie

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

#278 Post by don570 »

to Charlie...

I checked the setting of A,B colors and there does seem to be something
wrong with the setting of A,B colors.

The usual way I do this is with the right and left buttons and clicking on the
desired color on the left side of document window. This works fine.

But when I set A,B colors with the color palette editor by clicking on the
default color box ----> the palette is changed.

I am using recent version 3.44.93

When I checked with old Windows version 3.40 , the changing of
A,B colors doesn't change the palette of colors offered in main window.

__________________________________________________
Last edited by don570 on Mon 10 Aug 2015, 18:23, edited 1 time in total.

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

#279 Post by don570 »

I've been testing the setting of the color in the color editor.

I think I know how Dimitry has set it up now.

The GIF format has 256 colors but they may be chosen from millions
of colors. mtpaint has 256 colors in its default palette. Both Color 0 and Color 255
are black.

By using the color editor the B color (which is by default black)
can be quickly set to a non-default value like pink. When I return to the
main document window the color 0 is pink, so I can paint with pink paint.
I can make pink the transparent color by choosing color 0 as transparent
in the save document dialog.

If I want to paint with black paint then I choose color 255.

_______________________________________________________


Post Reply