omz:forum

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

    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 2
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    alpinerunner

    @alpinerunner

    0
    Reputation
    677
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    alpinerunner Unfollow Follow

    Latest posts made by alpinerunner

    • RE: Does jailbreaking break Pythonista out of the iOS sandbox?

      I'm a newbie to Python and iOS programming so use my advice at your own risk.

      If you've jailbroken your phone and have installed iFile (search for it on Cydia), you can do two things that were crucial to me.

      1. Create symbolic links

      If you create symbolic links, you can place the link inside the Pythonista sandbox and it will point elsewhere in the filesystem. These symbolic links will remain even after you restore a phone to its non jailbroken state.

      http://www.youtube.com/watch?v=9B4ki8dBxdY

      1. Change user priveleges for certain files.

      I'm working on a jailbroken app that consolidates messages across multiple media. When jailbroken, I can access the sandboxes of other apps, but accessing the iOS AddressBook.db and sms.db is trickier. Using iFile, I changed the privileges on those files to "Read, Write, Execute" for everybody. Problem solved.

      posted in Pythonista
      alpinerunner
      alpinerunner
    • Accessing a person's photo in the contacts module

      In the new contacts module is there any way to modify the person's picture?

      I'm not finding it, and I wanted to see if I was missing something.

      posted in Pythonista
      alpinerunner
      alpinerunner
    • Images are not resizing, being saved in original size.

      I'm trying to take the newest image from my photo album and resize it to 120x120.

      Here is my code.

      import photos as p
      import PIL as y

      x = p.get_count()
      img = p.get_image(x-1)

      thmb = img.resize((120,120))
      thmb.show()

      rslt = p.save_image(thmb)
      print rslt

      The image is saved back to my photo album, but when I look in the photo album directly from the iphone, the image maintains its original size.

      When I run the following script a second time, it should load the 120x120 resized image. Here's the crazy part. When I print the dimensions of that image, it's 120x120, even though it's 817x817 in my iOS photo album.

      What am I missing here?

      Thanks.

      posted in Pythonista
      alpinerunner
      alpinerunner
    • RE: Images are not resizing, being saved in original size.

      I figured out my problem. 817 x 817 meant it was the 817th photo out of an album of 817. The images were in fact being saved to the correct size.

      Live and learn.
      Sorry guys.

      posted in Pythonista
      alpinerunner
      alpinerunner
    • RE: Images are not resizing, being saved in original size.

      Let me try some better line breaks:

      import photos as p
      import PIL as y
      x = p.get_count()
      img = p.get_image(x-1)
      thmb = img.resize((120,120))
      thmb.show()
      rslt = p.save_image(thmb)
      print rslt
      
      posted in Pythonista
      alpinerunner
      alpinerunner