Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize conversion symbol usage for the image to not break #5

Open
Morinoli opened this issue Apr 19, 2024 · 1 comment
Open

Optimize conversion symbol usage for the image to not break #5

Morinoli opened this issue Apr 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Morinoli
Copy link

The conversion works, but most of the times it doesn't, mainly because it uses too many symbols for things that could have been only 1, like instead of using one circle for the eye it ends up using 5 symbols. Some photo memes ends up looking clearer than black n white 2d.

@kodemum kodemum added the enhancement New feature or request label Apr 20, 2024
@kodemum
Copy link
Owner

kodemum commented Apr 20, 2024

Yeah, it is definitely far from perfect. The main issue causing what you describe, I think, is that the Geometrize algorithm doesn't have a concept of layers.

What it does is basically, for each symbol, look for a symbol that causes the overall image to move the most towards the target image. This means that if your image is just one red circle with a blue one inside, a circle with a color that is in between will overall move it more towards the target that what we as people would intuitively do, which is to make the first circle fully red and the second one blue.

I did attempt to change it so that instead of using the average color of the area a symbol would cover, it would use the color that appears the most - but this wasn't consistently better either.

If you have some suggestion as to how it could be improved, feel free to let me know!

@kodemum kodemum changed the title Cool tool, but it would be great if it the conversion could optmize the symbol usage for the image to not break Optimize conversion symbol usage for the image to not break Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants