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.


    ObjC_Util Help

    Pythonista
    2
    3
    1522
    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.
    • Bubujelra
      Bubujelra last edited by Bubujelra

      I’d like to write a Pythonista script to interact with RAW photos and allow me to make adjustments. From what I’ve read, it looks like there isn’t any way to do this without using objc_util, but I’m having some issues getting it working. Here’s the apple documentation which speaks to the Objective-C code needed: https://developer.apple.com/documentation/coreimage/cifilter/1438096-filterwithimageurl?language=objc

      I tried the following, but it does not seem to work:

      CIFilter = ObjCClass('CIFilter')
      CIFilter.filterWithImageUrl_options_(imageURL=img, options=None)

      Having never worked with Objective-C, I guess I’m just really confused on what that code should look like to get the right syntax in Pythonista.

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

        see https://forum.omz-software.com/topic/4504/image-processing-using-objc/5, and omz's gist in that thread.

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

          Perfect! Thanks so much. I googled around a bit and didn't turn up anything so this is really helpful.

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