Attachment image format conversion
Attachment image format conversion
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
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
+1
+ have the checkbox checked by default
+ have the checkbox checked by default
Re: Attachment image format conversion
People WOULD complain about that, if it was implemented.dog80 wrote:+ have the checkbox checked by default
Former moderator
Re: Attachment image format conversion
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 ^^Kayanor wrote:People WOULD complain about that, if it was implemented.dog80 wrote:+ have the checkbox checked by default
Re: Attachment image format conversion
The forum should generate a scaled down jpg from the screnshot and keep the original as link in the inline image.