#Imagine Manipulation

4 messages · Page 1 of 1 (latest)

pliant crane
#

Hi! Gura_Wave Is there anyone experienced in image manipulation? (mainly related to rendering text, tinting images, and just general functionalities like overlaying while maintaining alpha channels properly etc..)

I'm migrating a pretty big codebase from node to cpp, so I've been using sharp before.

  • What packages would you recommend?
    My first thought was to try opencv, since I'm somewhat experienced with it, but it lacks a lot of nice features. As it turned out, its text/svg support isn't really strong. So I tried building and properly linking Skia instead, which looked really promising, but to no avail. I just couldn't get it working dead
wispy plinth
#

I would have said opencv

pliant crane
# wispy plinth I would have said opencv

Yeah, I initally thought of opencv as well, but it doesn't quite handle some of the features I'm looking for. I need better support for text rendering (with options like letter spacing), and opencv's svg support is also pretty basic.

#

In a bit more detail:

I used Sharp in node, it was really smooth for things like text rendering by parsing strings straight into SVG buffers for example. (including letter spacing and other really neat options SVG provides by default)

Opencv on the other hand, looks to be missing some of these features in general, or they aren't advanced enough for my use case. Of course it also has the putText function for rendering but it has a pretty limited control over typography. Or it might just be my lack of skill. Shrug

I could probably handle SVGs using external libraries and then load them further but it just seems such a hassle.