Board index FlightGear Development New features

Screenshots in JPG?

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

Screenshots in JPG?

Postby D-ECHO » Sat Sep 14, 2019 4:36 pm

Hi!
As it's very useful for uploading screenshots on the forum/discord/..., could we maybe add a function to select whether the screenshot is saved as .png or .jpg?
I've tried understanding how the code of this part works, any help would be highly appreciated.
Thanks!
User avatar
D-ECHO
 
Posts: 2110
Joined: Sat May 09, 2015 12:31 pm

Re: Screenshots in JPG?

Postby radi » Sat Sep 21, 2019 2:34 am

Doesn't exactly answer your question, but Imagemagick is available for every major OS.
Code: Select all
convert screenshot.png screenshot.jpg
OSM buildings for LOWI, EDDC
Custom scenery for VHXX YMML
Edit .stg via the FG Object Placement Tool
radi
 
Posts: 645
Joined: Mon Aug 25, 2008 4:24 pm
Location: YMML, EDDC

Re: Screenshots in JPG?

Postby wlbragg » Sat Sep 21, 2019 3:30 am

I've got some old code that works with image file conversion, really simple programming. I think it is in PHP and was used in part of my personal custom website. Would that be of any use?
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5664
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: Screenshots in JPG?

Postby Oswald » Sat Sep 21, 2019 9:19 am

Windows 10: I open the png file with paint and save as jpg.
Oswald
Oswald
 
Posts: 117
Joined: Sat Feb 20, 2016 11:29 pm

Re: Screenshots in JPG?

Postby tdammers » Tue Sep 24, 2019 10:46 am

Another option: upload to imgur, copy the direct image link, change extension from "png" to "jpg", and imgur will convert automatically, like so:

Image

(Original PNG image here: https://i.imgur.com/AfSrPPI.png
tdammers
 
Posts: 332
Joined: Wed Dec 13, 2017 10:35 am
Callsign: NL256
IRC name: nl256

Re: Screenshots in JPG?

Postby xDraconian » Thu Sep 26, 2019 6:37 am

Pretty sure that doesn't work... AfSrPPI.jpg.png
xDraconian
 
Posts: 330
Joined: Sun Jan 21, 2018 5:53 am
Version: Git
OS: Linux Mint

Re: Screenshots in JPG?

Postby tdammers » Thu Sep 26, 2019 12:32 pm

Change the extension. Not add another one.

Lookie:

https://i.imgur.com/AfSrPPI.png

https://i.imgur.com/AfSrPPI.jpg
tdammers
 
Posts: 332
Joined: Wed Dec 13, 2017 10:35 am
Callsign: NL256
IRC name: nl256

Re: Screenshots in JPG?

Postby wlbragg » Fri Sep 27, 2019 3:27 am

If you look at the image info it is still in PNG format, you just changed the filename to have a JPG extension.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5664
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480


Return to New features

Who is online

Users browsing this forum: No registered users and 0 guests