megahertz / node-purified-image

Load, save and draw on image with API similar to HTML Canvas Context 2D. No native dependencies.
MIT License
2 stars 2 forks source link

Issues with fillText and fillRect #1

Open kastentx opened 5 years ago

kastentx commented 5 years ago

When drawing on top of a PNG image, I can use draw functions like strokeRect and clearRect, but I'm unable to use fillRect at all, and the text from fillText appears kind of blurry and distorted.

Is this a known issue, if so, are there any known workarounds?

megahertz commented 5 years ago

It's related to node-pureimage library. I can try to update to the latest version later, but I don't think it could resolve text antialiasing problem.

kastentx commented 5 years ago

I see. I appreciate the help, in either case! Here's what I'm getting now, I'm not 100% sure if this is antialiasing or possibly something different: https://imgur.com/a/y0VPodt. With node-canvas the labels look like this: https://raw.githubusercontent.com/CODAIT/node-red-contrib-model-asset-exchange/master/docs/images/object_detector.png but I need something that can also run on a Pi.

megahertz commented 5 years ago

Check the latest version