omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. Niklas

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 23
    • Best 0
    • Controversial 0
    • Groups 0

    Niklas

    @Niklas

    0
    Reputation
    797
    Profile views
    23
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Niklas Unfollow Follow

    Latest posts made by Niklas

    • RE: Converting images to webp or jpeg2000 in Pythonista

      @cvp, my intention was to do as much as possible in Pythonista, since I find Shortcuts so slow. Your question got me to think and I went with your suggestion instead. ๐Ÿ™‚ Also, I already had a shortcut that did most of what I wanted.

      @mikael, thanks for suggesting tobytes. I will try to keep that in mind for another time. ๐Ÿ™‚

      posted in Pythonista
      Niklas
      Niklas
    • RE: Converting images to webp or jpeg2000 in Pythonista

      A related question:

      If I get a jp2 image from Shortcuts via the clipboard, can I save it to Files in Pythonista? When I try to do it with image.save(image-to-save) I get an OSError: encoder jpeg2k not available, which I can understand. I think there should be a way to disregard the file type and save it the way it came, without making any changes other than the file name.

      Is this possible?

      posted in Pythonista
      Niklas
      Niklas
    • RE: Converting images to webp or jpeg2000 in Pythonista

      I tried to read and follow what they did there, but it was above my knowledge level. Thanks anyway! ๐Ÿ™‚

      posted in Pythonista
      Niklas
      Niklas
    • RE: Converting images to webp or jpeg2000 in Pythonista

      Thank you! Iโ€™m thinking of doing something like that, but more or less only do the .jp2 conversion in Shortcuts and everything else in Pythonista. ๐Ÿ™‚

      What I meant by the sentence you quoted, is that I hope Pythonista will get built-in support for webp and jpeg2000 conversions in the future. Since that is what Google recommends if you want high website rankings in their search results, I think Pythonista would be a good place to have it on iPad.

      posted in Pythonista
      Niklas
      Niklas
    • RE: Converting images to webp or jpeg2000 in Pythonista

      Thank you, @mikael, doing it in Shortcuts worked perfectly! ๐Ÿ™‚ Like you, I tested different ways of making it work in Pythonista, but gave up. If someone else needs it, the shortcuts is here:

      https://www.icloud.com/shortcuts/de01f3230990494b85129535fa855d5d

      You can pick images from Photos or Files and it converts them to jpeg2000. Then you can save them back to Photos or Files.

      Hopefully it will be possible to do this in Pythonista eventually. ๐Ÿ™‚

      posted in Pythonista
      Niklas
      Niklas
    • RE: Converting images to webp or jpeg2000 in Pythonista

      Thank you, I will try to make that work! ๐Ÿ™‚

      Best regards, Niklas

      posted in Pythonista
      Niklas
      Niklas
    • Converting images to webp or jpeg2000 in Pythonista

      Hi!

      Is it possible to convert images from png or jpg format to webp or jpeg2000 in Pythonista? I have Googled and tested different ways but canโ€™t get it to work. Anyone else here who has managed to do it?

      Best regards, Niklas

      posted in Pythonista
      Niklas
      Niklas
    • RE: (Copy and) paste not working in Pythonista

      I'm not sure if the external keyboard matters. It's the same if I switch the keyboard off and use the native copy/cut and paste. Strange. If I'm the only one experiencing this it's probably a local thing on my iPad. Thanks anyway! ๐Ÿ™‚

      posted in Pythonista
      Niklas
      Niklas
    • RE: Easy way to switch keys and values in Python dictionary

      Thanks! That looked even easier than I had anticipated. ๐Ÿ˜€ I love Python.

      posted in Pythonista
      Niklas
      Niklas
    • (Copy and) paste not working in Pythonista

      Hello!

      Lately I have had trouble pasting text in Pythonista. Sometimes it works, but often it doesnโ€™t. There is no difference if I copy from inside Pythonista or if itโ€™s from another app. The copying seems to always work, but pasting doesnโ€™t. If I use Cmd + V on an external keyboard, nothing happens, and if I tap to get the context menu, thereโ€™s no โ€œpasteโ€ option.

      Is this something you have experienced? Is there a solution?

      I use the latest iPadOS version (13.6.1 I think) on an old iPad Pro 10.5.

      Best regards, Niklas

      posted in Pythonista
      Niklas
      Niklas