when uploaded on forums you just have white where transparency layer should be. matters to me since avatars dont work right and the jpeg work around to get transparency working seems like a lot of work. any way we could upload pngs and have them stay pngs?
also apparently after a short while the forums stops showing the embedded link and instead uploads and host a copy as a jpg which breaks transparency and maybe could be a copywrite issue? idk not a lawyer
AFAIK the JPEG standard does not contain a transparency specification so it cannot contain said data.
Transparency works in a way that a specific color is chosen in the hex format:
00FF00 (green - usually picked, sometimes pink)
and all pixels with that specific color is tagged for transparency. PNG has this information and can display it correctly but the JPEG format does not support it and just shows the transparency color instead.
there’s other reasons why it shouldn’t be done (dunno if it applies here but could be part of the reason).
its way easier to introduce runnable steg data into a png.
meaning a bad actor can hide a script in the picture data, and when its displayed on the website.
starts a malicious payload, such as a remote shell.
basically jpeg is more secure if a little limited.
well smol scaled down png zoomed out with more transparency at the edges seems to have done the trick being small enough to stay png and not get converted. figured i would post my “fix” so anyone else struggling with this would figure it out. lots of extra space full of transparency is something pngs do well so if you have enough extra space and low enough file size on the actual image it doesnt make sense to swap to jpeg so it doesnt.
Turn forum conversion off and just preserve the uploaded format? Space is cheap man and objectively at this scale so is bandwidth. I mean is it really that big of a deal. I dont think I see a bunch of people rolling around posting 50 MB gifs and PNGs at most its like 8 MB
Also your proxy still has a back end issue.
Your thing says thats the limit but above 10 MB it still does not upload
i think it will have something to do with the amount of compression in the jpeg as to whether the site converts it or not.
the trade off being load times for the image.
with higher compression images, while smaller take longer to load completely on the website.