samizdatco / skia-canvas

A GPU-accelerated 2D graphics environment for Node.js
MIT License
1.67k stars 63 forks source link

add basic webp support #119

Open revam opened 1 year ago

revam commented 1 year ago

I couldn't find an existing issue or PR for webp support in the library, so I decided to tackle the task myself. It was really easy to add it — provided i didn't overlook anything. It is tested and working locally with both gpu (vulkan on linux) and cpu rendering.

It might need some extra handling for dpi scaling in https://github.com/samizdatco/skia-canvas/blob/main/src/context/page.rs, but I'm not too familiar with either this code-base or rust in general, so I'll let all of you — the maintainers — determine that.

revam commented 1 year ago

@samizdatco just wondering if you will ever take a look at this PR or if I should just close it. It's been over 2 months and no comment and/or any other kind of reply. 🙂