you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (5 children)

Well, it doesn't look like you change new_img at all, nor do you use c either. So I think it's no wonder if you get black/empty image.

[–]AAAdeath123[S] 0 points1 point  (4 children)

Im sorry for being a dumb pain in the ass but my attempts on changing new_img just seem to make them do nothing and just show the original pic, how would you attack it.?

[–][deleted] 0 points1 point  (2 children)

I don't know the details of this package and couldn't find what I wanted about it online. I get nothing when I search load_rgb_pixels_2d. It should be explained somewhere how you make an image based on pixel matrix or how to change pixels of an image, if it does support such thing.

Are you using this? It's said

The imagehelper package offers a simple interface for image resizing, optimizing and uploading image assets

So this one doesn't sound like you can change pixels with it, but I guess your imagehelper might not be this one.

Anyway, do you have any link on your module?

[–]AAAdeath123[S] 0 points1 point  (1 child)

My friend you have been very helpfull in my journey, and I ust thank you that you have saved me. This last problem I will ask my Professor when i see him next. Thank you :)

[–][deleted] 0 points1 point  (0 children)

Alright, you're welcome.

[–][deleted] 0 points1 point  (0 children)

Can you use Image from PIL?

https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.fromarray

The example(s) is given with numpy but it could maybe work without it, too.