How can I do.... (mtpaint 3.49.129

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
pp4mnklinux
Posts: 1125
Joined: Wed Aug 19, 2020 5:43 pm
Location: Edinburgh
Has thanked: 632 times
Been thanked: 281 times
Contact:

How can I do.... (mtpaint 3.49.129

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

HerrBert
Posts: 357
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 126 times

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

Post 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 324 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!

User avatar
Chelsea80
Posts: 361
Joined: Tue Mar 09, 2021 12:44 am
Has thanked: 47 times
Been thanked: 75 times

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

Post 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

Chelsea80

1. BionicPup32+28 19.03 - Linux 4.9.163 - lxpup - 32-pae [i686] - (UPup Bionic Beaver)
....Frugal Install - Internal HDD - Gateway MX8716b - HDD 120GB - RAM 2GB

2. Friendly-Bionic32 v1.1
....USB Stick 2GB

User avatar
pp4mnklinux
Posts: 1125
Joined: Wed Aug 19, 2020 5:43 pm
Location: Edinburgh
Has thanked: 632 times
Been thanked: 281 times
Contact:

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

Post by pp4mnklinux »

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

Thanks everybody 4 your help.

Eastler_Dart
Posts: 80
Joined: Wed Aug 05, 2020 3:34 am
Has thanked: 1 time
Been thanked: 8 times

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

Post 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

User avatar
mikewalsh
Moderator
Posts: 6155
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 793 times
Been thanked: 1979 times

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

Post 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. ;)

User avatar
pp4mnklinux
Posts: 1125
Joined: Wed Aug 19, 2020 5:43 pm
Location: Edinburgh
Has thanked: 632 times
Been thanked: 281 times
Contact:

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

Post 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

Post Reply

Return to “Users”