Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 21 Nov 2019, 13:35
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
mtPaint - How to save as JPEG? [SOLVED]
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
MochiMoppel


Joined: 26 Jan 2011
Posts: 1925
Location: Japan

PostPosted: 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?
mtPaint_save_choices.jpg
 Description   
 Filesize   46.41 KB
 Viewed   356 Time(s)

mtPaint_save_choices.jpg


Last edited by MochiMoppel on Tue 11 Dec 2018, 11:24; edited 1 time in total
Back to top
View user's profile Send private message 
8Geee


Joined: 12 May 2008
Posts: 2088
Location: N.E. USA

PostPosted: 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
View user's profile Send private message 
nosystemdthanks


Joined: 03 May 2018
Posts: 699

PostPosted: 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
View user's profile Send private message Visit poster's website 
don570


Joined: 10 Mar 2010
Posts: 5374
Location: Ontario

PostPosted: 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
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1545
Location: Drøbak, Norway

PostPosted: 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! Confused 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
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1925
Location: Japan

PostPosted: 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
View user's profile Send private message 
nosystemdthanks


Joined: 03 May 2018
Posts: 699

PostPosted: 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
View user's profile Send private message Visit poster's website 
tallboy


Joined: 21 Sep 2010
Posts: 1545
Location: Drøbak, Norway

PostPosted: Tue 11 Dec 2018, 16:58    Post subject:  

Thank you, I learn something new every day! Very Happy
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. Cool
And as I was in the mood, a transparent mm.gif!
afred-5.gif
 Description   
 Filesize   4.54 KB
 Viewed   241 Time(s)

afred-5.gif

mm.gif
 Description   
 Filesize   1.91 KB
 Viewed   249 Time(s)

mm.gif


_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5374
Location: Ontario

PostPosted: 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
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1925
Location: Japan

PostPosted: 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.
why_I_do_not_use_a_transparent_background.jpg
 Description   
 Filesize   62.87 KB
 Viewed   205 Time(s)

why_I_do_not_use_a_transparent_background.jpg

transparency_index_0.png
 Description   
 Filesize   2.52 KB
 Viewed   216 Time(s)

transparency_index_0.png

Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1545
Location: Drøbak, Norway

PostPosted: 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... Laughing
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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0686s ][ Queries: 12 (0.0080s) ][ GZIP on ]