Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Image2ASCII is on Github
-
Finally got around to putting the iOS version of Image2ASCII on my github. This is probably my project I'm proudest of, I spent a long time on it, and it's what taught me the
ui
module. So here it is! Screeenshot:
-
@Webmaster4, I really like the output. You could do some things to improve the ui. Exiting the app for example. You need to know the 2 finger swipe down to exit. Also the root_view, you can easily improve this to make a custom class like you did with your shadowview.
Inside a custom class inheriting ui.View, is pretty easy to be screen size and orientation friendly.
In the init of the class you create your ui elements, not worrying about frames etc. for the elements. Then define a method def layout(self) , is called automatically from ui. In that method, you can adjust all the frames of your ui elements.
If the layout method is not being called in your custom class, put the statement , self.flex = 'WH' in the init method of your class.
But still great output!! -
I updated the library behind this to include some tests, I've got an idea for a major improvement to functionality and to the effect it produces. Anyway, the background code at https://github.com/The-Penultimate-Defenestrator/Image2ASCII has been updated, and will be updated more soon.
-
@Webmaster4o , with the blur class from @omz? That would be fun
-
@Phuket2, yeah, that, I was thinking about something in the back-end generation engine, but that would be cool too. My idea will make the ASCII art more accurate.
-
Now the background rendering uses the full set of printable characters. Instead of my putting in threshold values manually, I have designed it so the program renders each character onto an image, and calculates the "visual weight" manually.
I could go beyond these, but I think that's overkill for now. Anyway, the result is much smoother images:
I think you can see much more detail in the images now than you could before, especially the iPhone shot that I took off of apple.com.
The other things that makes it look better besides a more diverse and accurate character set are:
- Increase contrast to 150% before rendering, it's easier to see detail in ASCII art with more contrast
- Use closest match to find which character to use, not threshold.
I still have to update the Pythonista app to include these changes.
-
I've updated the iOS app.
-
Who needs base64 encoded images when you can have this?
-
@Moe LOL, exactly right. In the future, this is how we will transfer image data. This is arguably the most readable form for transmitting images.
-
This is how images were transferred back in the days of dial up BBSs and monochrome monitors(who remembers the amber monitor craze of the late 80's)