Page 1 of 1

How can I do.... (mtpaint 3.49.129

Posted: Sun Apr 09, 2023 12:08 pm
by pp4mnklinux

Hello everybody:

Can you help me to configure default save format in mtpaint 3.49.129 as jpeg insted of png ??

By default, mtpaint save as png, it is not important for me, except when I want to post a screen in a forum, becaus usually the image size is excesive.

In .png, I have configurated the compression level at 9 (the maximum), but in some situations the image is big, very big.

So I solved the problem choosing SAVE AS and the format jpeg with a size of 60%. This way no problem.

But I don't like to waste my time (although are miliseconds, hahahh).- How can I configure mtpaint 3.49.129 to save as default in jpeg ??

Thanks in advance.


Re: How can I do.... (mtpaint 3.49.129

Posted: Sun Apr 09, 2023 5:08 pm
by HerrBert

I don't think you can change the default file format to jpg. Never read about it anywhere.

But you can make use of mtpaint scripting capability...

From menu Image -> Scripts choose Configure, select first empty line, give the Action a name and write the command as shown:

Code: Select all

-image/scale w=60% -file/as=/root/Captures/screenshot format=jpeg
mtpaint-script.jpg
mtpaint-script.jpg (92.43 KiB) Viewed 322 times

You can immediately try the script by clicking Execute.
You have to click OK here in order to save the action.
Then from menu Image -> Scripts you can run your script any time you want.

Limitation is that you can not enter a filename and an existing file will be overwritten without asking!


Re: How can I do.... (mtpaint 3.49.129

Posted: Sun Apr 09, 2023 6:42 pm
by Chelsea80

@ pp4mnklinux

An alternative if you have Take a Shot! (TAS-1.14)

This gives the option to save the screenshot as PNG - JPG - BMP - TIF -GIF

In the Format: drop down box

You can also Scale (%) it

Edit: Corrected version of TAS

Best regards

Chelsea80


Re: How can I do.... (mtpaint 3.49.129

Posted: Sun Apr 09, 2023 7:22 pm
by pp4mnklinux

Yeah, the problem with TAS is when you want to captura a region, bad config.

Thanks everybody 4 your help.


Re: How can I do.... (mtpaint 3.49.129

Posted: Sun Apr 09, 2023 8:44 pm
by Eastler_Dart

if I understand all here right, then you open a png file,
work with it and then you want to save it as jpg, right?

In that case, its not the 'Defaut of mtpaint' to store in png-format,
it is because the opened file was already a png.

Same, if you create a new blanc image to paint in it.
The 'new file' out of the menu, sets the fileformat to png,
and thats why saving it starts with png-format.

So, changing the default of mtpaint (if its possible) would not
help in that cases ;-)

When I remember right, you can set in the start-call of mtpaint
scripting commands, which leads mtpaint not to open his
usual window, for example to read a png-file and save it
as a jpg file and exits then. After that you can start mtpaint in normal
way with only the jpg-file as parameter, then after edit the image
you need only Strg+s for saving it - as jpg.

Code: Select all

root in ~
#: mtpaint --help
mtPaint 3.50.09

Usage: mtpaint [option] [imagefile ... ]

Options:
  --help          Output this help
  --version       Output version information
  --flist         Read a list of files
  --sort          Sort files passed as arguments
  --cmd           Commandline scripting mode, no GUI
  -s              Grab screenshot
  -v              Start in viewer mode
  --              End of options

Type mtpaint --help in console, if the --cmd parameter
is showed in the helptext, then your mtpaint-version
is able to do so.

In that case you can make a bash-script, which has
the two times starting mtpaint in it, with
the filename as parameter to the script.

Hope it helps - Eastler


Re: How can I do.... (mtpaint 3.49.129

Posted: Sun Apr 09, 2023 9:18 pm
by mikewalsh

@pp4mnklinux :-

I take it you ARE aware of how TAS captures a region, yes?

It's not like many others, using scrot, where you click/hold & drag, and a nice outline appears to show the region to capture. With TAS, you click at the top left corner of your "region", followed by clicking on the bottom right corner of your "region". It can sometimes be a bit fiddly getting that second click in just the right place.

Takes a bit of getting used-to, that's all. But it does work, nicely. :)

Mike. ;)


Re: How can I do.... (mtpaint 3.49.129

Posted: Sun Apr 09, 2023 9:37 pm
by pp4mnklinux

:thumbup2: :thumbup2: :thumbup2: hahaha.... thanks a lot...

Can you believe me when I say I never thought the problem with TAS was this one ?? I always thought It was due to a bad config....

Tomorrow night I'll try to solve my "problem" with mtpaint.... to see if suggested answers work.

Have a nice day u all.-

CHEERS