Author |
Message |
MochiMoppel

Joined: 26 Jan 2011 Posts: 1937 Location: Japan
|
Posted: Mon 10 Dec 2018, 00:02 Post subject:
mtPaint - How to save as JPEG? [SOLVED] |
|
For small image corrections and format conversions I use mtPaint 3.40.
In some cases mtPaint would not allow me to save an image as JPEG. For example my avatar is in PNG format and mtPaint offers no JPEG options in the Save As dialog (see screenshot). For other PNGs I would be offered a much wider range:
BMP
J2K
JPEG2000
JPEG
PAM
PCX
PNG
PPM
TGA
TIFF
XPM
What determines which Save As options I get and how can I force mtPaint to offer me a JPEG choice?
Description |
|
Filesize |
46.41 KB |
Viewed |
358 Time(s) |

|
Last edited by MochiMoppel on Tue 11 Dec 2018, 11:24; edited 1 time in total
|
Back to top
|
|
 |
8Geee

Joined: 12 May 2008 Posts: 2095 Location: N.E. USA
|
Posted: Mon 10 Dec 2018, 00:53 Post subject:
|
|
The Save As option in FILE usually has the selection JPG or JPEG with a %Quality box. I see this is mtpaint3.40 you may need 3.44 if this is a bug.
One other thing occured to me... you might need to set the pallette as a 24bit RGB instead of an indexed pallette.
Regards
8Geee
_________________ Linux user #498913 "Some people need to reimagine their thinking."
"Zuckerberg: a large city inhabited by mentally challenged people."
Last edited by 8Geee on Mon 10 Dec 2018, 00:57; edited 1 time in total
|
Back to top
|
|
 |
nosystemdthanks

Joined: 03 May 2018 Posts: 700
|
Posted: Mon 10 Dec 2018, 00:54 Post subject:
Re: mtPaint - How to save as JPEG? |
|
palette.
https://bbs.archlinux.org/viewtopic.php?id=107250
Quote: | By default the mtpaint setting for new documents is set to 'indexed pallette'.
This format is not saveable in jpg-Format!
You have to change setting for new documents to 24bit RGB once and you can save as jpg/jpeg and much more formats. |
_________________ "microsoft is unique among proprietary software companies: they are the only ones who have actively tried to kill [floss]. it’s not often someone wants to be your friend after trying to kill you for ten years" -- bradley m. kuhn
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5384 Location: Ontario
|
Posted: Mon 10 Dec 2018, 19:03 Post subject:
|
|
The answer above is correct, however I would suggest GIF format
since it is a lossless format and is designed to work
with high quality grey scale images which you have.
Then you could still use an indexed palette.
I avoid using jpeg because it adds fuzz i.e. lossy format.
__________________________________________________________
|
Back to top
|
|
 |
tallboy

Joined: 21 Sep 2010 Posts: 1554 Location: Drøbak, Norway
|
Posted: Tue 11 Dec 2018, 09:05 Post subject:
|
|
Hi MochiMoppel.
I stumbled on a sentence in an answer to a problem related to Imagemagick, and thought I might have found the answer to you problem.
https://stackoverflow.com/questions/12424018/how-to-replace-white-background-color-with-transparent-of-an-image-in-imagemagic
Quote: | You cannot have transparent background colors in your JPEGs. The JPEG file format doesn't support transparency. |
But that was until I reopened the forum and saw your avatar, which I thought was transparent, which it is not. Sorry! But there may be other limitations with .jpg that makes a conversion problematic?
BTW: You may find the scripts in this collection quite interesting: http://www.fmwconcepts.com/imagemagick/magicwand/ The homepage takes a while to open, it contains all the examples...
_________________ True freedom is a live Puppy on a multisession CD/DVD.
|
Back to top
|
|
 |
MochiMoppel

Joined: 26 Jan 2011 Posts: 1937 Location: Japan
|
Posted: Tue 11 Dec 2018, 11:23 Post subject:
|
|
Thanks everybody. I finally got it:
Menu > Image > Convert to RGB
I would have wished that mtPaint does the conversion automatically but I somehow understand the reasoning behind this unintuitive interface.
|
Back to top
|
|
 |
nosystemdthanks

Joined: 03 May 2018 Posts: 700
|
Posted: Tue 11 Dec 2018, 13:44 Post subject:
|
|
tallboy wrote: |
Quote: | You cannot have transparent background colors in your JPEGs. The JPEG file format doesn't support transparency. |
|
jpeg2000 does, and mtpaint even supports it. the browser doesnt though-- neither does geeqie, but you can save as jpeg2000 (after converting to rgb) and that can be converted to a png.
but a lot of good that does for transparent jpegs. note i never saved a jpeg2000 file until today.
_________________ "microsoft is unique among proprietary software companies: they are the only ones who have actively tried to kill [floss]. it’s not often someone wants to be your friend after trying to kill you for ten years" -- bradley m. kuhn
|
Back to top
|
|
 |
tallboy

Joined: 21 Sep 2010 Posts: 1554 Location: Drøbak, Norway
|
Posted: Tue 11 Dec 2018, 16:58 Post subject:
|
|
Thank you, I learn something new every day!
Look at my avatar, I finally managed to get rid of the white square background, I used Imagemagic.
I first scaled the .jpg image to max 80x80 pixels in mtpaint, and then:
Code: | convert alfred.e.jpeg -fuzz 20% -transparent white afred-5.gif |
The fuzz option takes hight for a not 100% clean white color.
Voila! as the say in french bistros...
I obviously managed to imagine the french bistro visit so intense that I misspelled alfred.
And as I was in the mood, a transparent mm.gif!
Description |
|
Filesize |
4.54 KB |
Viewed |
242 Time(s) |

|
Description |
|
Filesize |
1.91 KB |
Viewed |
253 Time(s) |

|
_________________ True freedom is a live Puppy on a multisession CD/DVD.
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5384 Location: Ontario
|
Posted: Tue 11 Dec 2018, 18:19 Post subject:
|
|
Additional information:
The GIMP gmic plugins has a feature in its 'Color' section
where a color can be selected and converted into transparency in an image.
-----------------------------------------------------------------
Latest Gimp appimage works in fatdog64 and Easy 0.9.10
https://github.com/aferrero2707/gimp-appimage/releases/download/continuous/GIMP_AppImage-git-2.10.9-withplugins-20181206-x86_64.AppImage
___________________________________________
|
Back to top
|
|
 |
MochiMoppel

Joined: 26 Jan 2011 Posts: 1937 Location: Japan
|
Posted: Tue 11 Dec 2018, 21:03 Post subject:
|
|
If I wanted to set a transparent background for my avatar I would keep it as PNG and "Save As" in mtPaint with Transparency index changed from -1 to 0 (white happens to have an index number 0 in the displayed color palette).
Anyway, I mentioned my avatar only as an example (spares me to post another sample pic). Transparency is an interesting subject but not related to my question.
Description |
|
Filesize |
62.87 KB |
Viewed |
206 Time(s) |

|
Description |
|
Filesize |
2.52 KB |
Viewed |
216 Time(s) |

|
|
Back to top
|
|
 |
tallboy

Joined: 21 Sep 2010 Posts: 1554 Location: Drøbak, Norway
|
Posted: Wed 12 Dec 2018, 11:26 Post subject:
|
|
Looks spooky? I agree, especially on a darker background, but that is because I probably am a little spooky...
It's funny how the brain interprets a drawing, without the white frame the avatar suddenly looks a bit anonymous...
Sorry for bringing in a new subject to your thread.
_________________ True freedom is a live Puppy on a multisession CD/DVD.
|
Back to top
|
|
 |
|