omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Pythonista
    4
    10
    6456
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Webmaster4o
      Webmaster4o last edited by

      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:


      1 Reply Last reply Reply Quote 3
      • Phuket2
        Phuket2 last edited by

        @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!!

        1 Reply Last reply Reply Quote 1
        • Webmaster4o
          Webmaster4o last edited by Webmaster4o

          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.

          Phuket2 1 Reply Last reply Reply Quote 0
          • Phuket2
            Phuket2 @Webmaster4o last edited by

            @Webmaster4o , with the blur class from @omz? That would be fun

            1 Reply Last reply Reply Quote 0
            • Webmaster4o
              Webmaster4o last edited by

              @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.

              1 Reply Last reply Reply Quote 1
              • Webmaster4o
                Webmaster4o last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • Webmaster4o
                  Webmaster4o last edited by

                  I've updated the iOS app.

                  1 Reply Last reply Reply Quote 0
                  • Moe
                    Moe last edited by

                    Who needs base64 encoded images when you can have this?

                    Webmaster4o 1 Reply Last reply Reply Quote 1
                    • Webmaster4o
                      Webmaster4o @Moe last edited by Webmaster4o

                      @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.

                      1 Reply Last reply Reply Quote 1
                      • JonB
                        JonB last edited by

                        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)

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post
                        Powered by NodeBB Forums | Contributors