• coomlata1

    @JonB...Thanks much for the useful information. I’ll follow up on your suggestions and see where Objective C and PHImageManager leads me. Hopefully I will have some useful code to present in the near future.

    posted in Pythonista read more
  • coomlata1

    @ JonB...Thanks for the response. I'm importing image, imagefont, and imagedraw from PIL and using them to open, resize, reorient if necessary, and then stamp GPS data to bottom of photo before copying it to a folder in dropbox. User has the option to retain the metadata in the Dropbox copy. Full code is here.

    I can get the metadata from the heic photo without problems, but PIL chokes on the photo during the opening and resizing, so I'm bypassing any that exist in the camera roll when I run the script.

    As I have thought about this more, I would prefer to keep the camera roll photos in heic format, rather than converting to jpeg, due to the more efficient storage capabilities. I imagine that PIL or Pillow will be updated to accommodate heic at some point in the future.

    posted in Pythonista read more
  • coomlata1

    With the introduction of iOS11, photos on the iPhone camera roll are stored in .heic format rather than jpg. Anyone have any thoughts on:

    1. How to retrieve metadata from the .heic photo files using pythonista
    2. How to convert said files from .heic to jpg format using pythonista

    You can set the iPhone camera to store pics in jpeg format in iOS11 by selecting 'Camera' in settings, selecting 'Format', and changing the setting from 'High Efficiency' to 'Most Compatible'. Downside to this is the larger storage size using jpeg and video quality will suffer.

    I would prefer to use the heic format, but most third party modules that work with images don't yet support heic.

    posted in Pythonista read more
  • coomlata1

    @Treenjood

    I wrote a script that converts the pyui attributes into text for copying into a py file as code. I will take a bit of manipulation to convert over some of the attributes, but it should help get you started. The code is available here.

    posted in Pythonista read more
  • coomlata1

    @markhamilton1
    Set up the app in dropbox as per your instructions. When I run the Sycronator script I get an error: 'FileMetaData object has no attribute 'content_hash'. I am using the app store version of Pythonista 2.11. Is the script designed to run in Pythonista 3? What directory does the script belong in, it's own, or the Pythonista root directory? I assume the DropboxSetup script goes in the site-packages folder where it can be imported by other scripts that need Dropbox access.

    posted in Pythonista read more
  • coomlata1

    Added this script to my GitHub repository. It extends the capabilities of the @lukaskollmer script and provides support for editing existing code header comments in scripts. Suggestions and improvements are always welcome.

    posted in Pythonista read more
  • coomlata1

    @nekotaroneko Thank you for the information. I have updated my script acknowledgements to reflect this.

    posted in Pythonista read more
  • coomlata1

    I have posted a script on my GitHub repository that expands the use of the GUI_Helper.py file. It is available here. The script uses the excellent file picker code in GUI_Helper.py to browse and select a pyui file in the Pythonista documents directory, and then returns a text file of the attributes of the view and subviews in the selected pyui file for copying into the code of a .py file. The text is displayed in the Pythonista console and copied to the clipboard. This allows for an easy transition from two seperate files into a single .py file when using a ui.

    posted in Pythonista read more
  • coomlata1

    to @jmv38...How, specifically in code, did you replace super() in @Phuket2 code, to get this to work in Pythonista 2.x.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!