mtpaint 3.49.12- April 2016
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
Hi don570,
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 ...
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 ...
I'm sorry to ask/insist ...please would you mind telling in a more detailed way how you did to get A and B colours settings saved?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 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 ...
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 ...
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
Hi don570,
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:
( i now believe this will render my wife's mtpaints use more easy )
Have fun! Charlie
Thanks a lot for your time ! I found your posts which helped !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.
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"
Have fun! Charlie
Patch for 3.44.92-93
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
- disallowed
- Posts: 279
- Joined: Sun 22 Mar 2015, 17:18
I ran this menu in puppy linux 4.3.1 (very old) and it worked using mtpaint 3.44.93.A crash bug has been found, affecting "File->Actions->Configure" since 3.44.92.
For instance I clicked 'Execute' button and Gimp opened up the image
I was working on. No crash was seen.
_________________________________________
I wrote a script to scale images in a folder.I have a folder containing grayscale JPEGs. I want to use mtPaint to convert them all to RGB colour space.
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'
____________________________________________________________
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'
- disallowed
- Posts: 279
- Joined: Sun 22 Mar 2015, 17:18
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:
I also tried
These open an error window "Cannot open file".
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
Code: Select all
sh-4.3# mtpaint -/root/a.jpg/'Convert to RGB'
sh-4.3# mtpaint -palette/'Load Default'
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/
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
The original file is left alone.
_________________________________________________
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
This isn't a serious error but I thought I'd mention it to you.'-image/rgb' matches a disabled item
The original file is left alone.
_________________________________________________
- disallowed
- Posts: 279
- Joined: Sun 22 Mar 2015, 17:18
1) mtpaint --> Image --> Script
It opens a window:
Click OK and opens an error window:
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:
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
Code: Select all
'-effect/unsharp' matches a disabled item
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
There is nothing unusual about this message. The programmer is justClick OK and opens an error window:
Code:
'-effect/unsharp' matches a disabled item
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'
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.
___________________________________
- disallowed
- Posts: 279
- Joined: Sun 22 Mar 2015, 17:18
Code: Select all
sh-4.3# -image/'Convert to RGB'
sh: -image/Convert to RGB: No such file or directory
- disallowed
- Posts: 279
- Joined: Sun 22 Mar 2015, 17:18
Ok, I open the grayscale jpeg with mtpaint
>> Image >> Script
Run
and that was it. Well, nice.
>> Image >> Script
Run
Code: Select all
-image/'Convert to RGB'
-palette/'Load Default'
- charlie6
- Posts: 1230
- Joined: Mon 30 Jun 2008, 04:03
- Location: Saint-Gérard / Walloon part of Belgium
[SOLVED]
Hi,
*********************************
last edited: having slept on it...
[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... ) from within mtpaint as the «default palette», which is now loaded at each new mtpaint run.
in my case it is:
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
*********************************
last edited: having slept on it...
[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... ) from within mtpaint as the «default palette», which is now loaded at each new mtpaint run.
/etc/mtpaint/palette.gpl's line 5 gives the RGB value for color Nr.0/root/.mtpaint wrote:defaultPalette = /etc/mtpaint/palette.gpl
in my case it is:
which is Black color hex#242424/etc/mtpaint/palette.gpl line 5 wrote: 36 36 36 Untitled
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
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.
__________________________________________________
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.
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.
_______________________________________________________
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.
_______________________________________________________