Image manipulation

I need to load an image from the remote resource and then transform it (scale, apply mask, sharpen).
How do I do that right? I’m trying to use image.load and then access it’s image.buffer. But working with it as with a string is very slow. Is there a better way?

1 Like

Take a look at my imageloader extension. You can write image manipulation code in C++, it would work fast.

2 Likes

I’m trying to. I just don’t want to implement image loading and trying to use image library to load images and then pass the data to my extension. I’m getting problems when I’m trying to work with image.buffer as dmBuffer, when I call dmBuffer::checkBuffer on it I’m getting error: ‘buffer expected, got string’. How to transform image.buffer from string to buffer type?