News for hackers. Stuff that matters.
Re:Show HN: Turn raw HTML into production-ready images for free by xiaohanyu on Tuesday December 23, 2025 @10:25PM (#46372103)
Maybe webp is a better target than png?
Re:Show HN: Turn raw HTML into production-ready images for free by dtagames on Tuesday December 23, 2025 @10:52PM (#46372250)
It's not. JPG, I could live with but please not webp.
Re:Show HN: Turn raw HTML into production-ready images for free by Mogzol on Wednesday December 24, 2025 @12:41AM (#46372816)
Why? I assume the intention is to show these images on a webpage somewhere. WebP is well-supported by browsers and can store lossless images at better compression ratios than PNG, so why not use it? I don't think using a lossy format like JPEG makes much sense. JPEG is a fine format for photos, but for HTML content rendered as an image I assume most people would want a lossless format so you don't get artifacts.
Re:Show HN: Turn raw HTML into production-ready images for free by kaizenb on Wednesday December 24, 2025 @01:24AM (#46373004)
Definitely should be WebP.
Re:Show HN: Turn raw HTML into production-ready images for free by dtagames on Wednesday December 24, 2025 @10:09AM (#46376228)
Because it's impossible to use in other tools. Only browsers get it. But I agree about lossy images for text.
Re:Show HN: Turn raw HTML into production-ready images for free by benatkin on Tuesday December 23, 2025 @11:20PM (#46372421)
No, because their domain is png /s

I thought webp would be better for this and checked again just to be sure, and yes, it would be better for this. WebP is quite well supported, albeit not as well supported as png, and it can have significantly smaller file sizes for the same lossless image as png.