TheZoraiz / ascii-image-converter

A cross-platform command-line tool to convert images into ascii art and print them on the console. Now supports braille art!
Apache License 2.0
2.05k stars 121 forks source link

Cannot open image in standard command prompt on Windows 10 21H1 #10

Closed PIndividual closed 2 years ago

PIndividual commented 2 years ago

when dragging and drop the image path on windows, it always gives out an error message, but when running cmd in admin mode, drag and drop simply won't work.

PIndividual commented 2 years ago

image

TheZoraiz commented 2 years ago

ascii-image-converter supports image urls, so I think the url validating library is confusing the "c:\\" in the file path as a url. Will look into this and patch soon. Thanks for reporting!

Edit: However, relative paths should still work so you can do something like ascii-image-converter Pictures\myImage.jpg

TheZoraiz commented 2 years ago

Patched this issue in v1.9.2. Only inputs with http:// and https:// initials should now be considered as urls. I just tested and drag and drop works on windows now. Let me know if it works on your end.

PIndividual commented 2 years ago

Looks good for me now, BTW why coloring in cmd is not working, if it is the issue caused by cmd itself, are there other command prompt software that support image coloring in Windows? Thanks XD.

PIndividual commented 2 years ago

image

TheZoraiz commented 2 years ago

You seem to be using the -c flag. The coloring flag is -C with a capital C. Lowercase -c just adds more characters in ascii art. Execute ascii-image-converter -h for more details.

Anyways, I'm closing this issue since it appears to be solved.