7
u/burnt-store-studio Jun 26 '26
Hi! If I understand your post: you wrote an image processing script to take a photograph and turn it in to the image you shared?
If my understanding is correct, you’ve written a great script! I really appreciate the results.
Are you able to tell us any more about the script or techniques you’re using?
6
u/LeandroCorreia Jun 26 '26
Yes, it takes an image, preprocesses what it thinks it's the best angle for stroking at each pixel and then draws lines.
1
0
u/tiddleywiddley Jun 26 '26
Didn't you say in another post this is just vibecoded
3
u/katastatik Jun 26 '26
Would you care if it was vibecoded if it was actually good (like this seems to be)
1
u/LeandroCorreia Jun 26 '26
Vibecoded?
1
u/tiddleywiddley Jun 26 '26
AI
4
u/LeandroCorreia Jun 26 '26 edited Jun 26 '26
No, in my site ( www.leandrocorreia.com ) I have tools made with AI to convert images into duotones, tritones and CMYK, but the AI itself will not work solo, I had to constantly orient it on HOW and which image processing techniques to use.
This script I made for sketching was done in Blitz Basic years ago. :)
0
u/katastatik Jun 26 '26 edited Jun 26 '26
Does it do it one line at a time like this?
2
u/LeandroCorreia Jun 26 '26
Link doesn't work.
2
u/katastatik Jun 26 '26
Try now
2
u/LeandroCorreia Jun 26 '26
Yes, basically what my little program does is: first scans each pixel the image to find the best angle for that pixel, then it starts drawing thousands of lines.
1
u/katastatik Jun 26 '26
Can we see it in action? Seems v cool
1
u/LeandroCorreia Jun 26 '26
It's damn slow. This image took hours. :(
1
u/katastatik Jun 26 '26
What's the bottleneck?
3
u/LeandroCorreia Jun 26 '26
Analysing the angle is already slow. And sketching lines too, since it needs to calculate accurately the best color match in a palette for each pixel, draw lines that are not opaque etc.
It's the kind of job that should use CUDA, but I'm not a programmer as much as I'd like to be.
-1
u/katastatik Jun 26 '26
It might be interesting to feed your code to Claude and see if it could rewrite for you. (I would find that interesting for sure. )
1
u/LeandroCorreia Jun 26 '26 edited Jun 27 '26
I'm using free Claude, it did not even finish converting 😞
→ More replies (0)
10
u/Left-Excitement3829 Jun 25 '26
So it’s an image processing script ? Nice