Page 1 of 1

Attachment image format conversion

Posted: Tue Feb 27, 2018 10:35 pm
by Zanthra
I am seeing a lot of very large PNG screenshots on the forums recently (larger than 5MB), and they seem to be loading somewhat slowly for me even on a very fast Internet connection, suggesting the system serving the attachments may be overloaded. Is it possible that you may be able to have a checkbox "Attempt to convert this attachment to JPG" and if checked run it through imagemagik or something similar to reduce screenshot sizes since windows "Print Screen" simply dumps a PNG into the Photos folder and it takes several steps and a nondefault program (although on Windows 10 the preinstalled Paint3D can be used) to load and resave the screenshot as a JPEG it might be reasonable to optionally handle the conversion on the server side.

Re: Attachment image format conversion

Posted: Mon Mar 05, 2018 2:25 am
by Jon8RFC
Not a bad idea, as long as the compression isn't awful, it doesn't compress a jpg over again, and doesn't convert any image to jpg which would have the same or larger size than the original.

Re: Attachment image format conversion

Posted: Mon Mar 05, 2018 6:54 am
by dog80
+1
+ have the checkbox checked by default

Re: Attachment image format conversion

Posted: Mon Mar 05, 2018 10:00 am
by Kayanor
dog80 wrote:+ have the checkbox checked by default
People WOULD complain about that, if it was implemented.

Re: Attachment image format conversion

Posted: Tue Mar 06, 2018 4:54 pm
by dog80
Kayanor wrote:
dog80 wrote:+ have the checkbox checked by default
People WOULD complain about that, if it was implemented.
Not sure about that, i think most people just want to show sth and dont care about .png, .jpg at all. So a 100% quality compression to jpg would be unnoticed. - but whatever... there are more important things to do then worry about peeps that want to surf the forum on their mobile phone and dont accidentially want to download a 10mb png that cuts their internet capacity dx - maybe there should be some kind of limiting instead and not the factorio people should worry about this ^^

Re: Attachment image format conversion

Posted: Tue Mar 06, 2018 5:09 pm
by mrvn
The forum should generate a scaled down jpg from the screnshot and keep the original as link in the inline image.