Auto-generated "-resized" image is 30 times bigger and doesn't work
-
Original uploaded file: https://what.thedailywtf.com/assets/uploads/files/1503607802535-wordcloud.svg. Size = 16.4 KB. Result = works fine.
The version that NodeBB tries to embed instead: https://what.thedailywtf.com/assets/uploads/files/1503607802535-wordcloud-resized.svg. Size = 488 KB. Result = "error on line 6499 at column 59: Namespace prefix xlink for href on image is not defined". Probably because it's just a base64-encoded PNG, and not even embedded properly.
-
Why didn't it just save the PNG as a PNG, and use that as the preview image in the embed?
-
@anotherusername I blame imagemagick.
-
@anotherusername It would still be bigger than the original. Can't beat vector graphics for vector-y things.
(and that's with SVG using XML which is about 10 times bigger than it would be as a binary format)
-
@anonymous234 Why is it even making a -resized version for SVGs?
-
@arantor said in Auto-generated "-resized" image is 30 times bigger and doesn't work:
@anonymous234 Why is it even making a -resized version for SVGs?
Because nondiscrimination!