Attachment image format conversion

Discussions related to the forums itself. Call for moderators. Trash Posts area.
Post Reply
Zanthra
Fast Inserter
Fast Inserter
Posts: 207
Joined: Fri Mar 25, 2016 8:18 am
Contact:

Attachment image format conversion

Post 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.

User avatar
Jon8RFC
Filter Inserter
Filter Inserter
Posts: 553
Joined: Tue May 10, 2016 3:39 pm
Contact:

Re: Attachment image format conversion

Post 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.
Image

User avatar
dog80
Filter Inserter
Filter Inserter
Posts: 278
Joined: Thu Dec 08, 2016 11:57 pm
Contact:

Re: Attachment image format conversion

Post by dog80 »

+1
+ have the checkbox checked by default

User avatar
Kayanor
Global Moderator
Global Moderator
Posts: 565
Joined: Sat May 10, 2014 7:20 am
Contact:

Re: Attachment image format conversion

Post by Kayanor »

dog80 wrote:+ have the checkbox checked by default
People WOULD complain about that, if it was implemented.
Former moderator.

User avatar
dog80
Filter Inserter
Filter Inserter
Posts: 278
Joined: Thu Dec 08, 2016 11:57 pm
Contact:

Re: Attachment image format conversion

Post 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 ^^

mrvn
Smart Inserter
Smart Inserter
Posts: 5681
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Attachment image format conversion

Post by mrvn »

The forum should generate a scaled down jpg from the screnshot and keep the original as link in the inline image.

Post Reply

Return to “This Forum”