danielecook / alfred-image-utilities

Make quick edits to images
http://www.alfred-workflows.com
MIT License
15 stars 1 forks source link

macOS Catalina support? #2

Open gandalfsaxe opened 4 years ago

gandalfsaxe commented 4 years ago

Any chance this could be made to work out-of-the-box on macOS Catalina?

danielecook commented 4 years ago

I'll have to take a look - I wasn't aware it didn't work in Catalina. Is there a certain error you are seeing?

gandalfsaxe commented 4 years ago

First I get this: image

Clicking the link goes to this (Fixum): https://www.alfredapp.com/help/troubleshooting/incompatible-python-workflow-library/

After running Fixum to fix Alfred Image Utilities, I now see the workflow:

image

Finally, running e.g. a scale of 50% on an image, I finally get this: image

So in summary:

  1. There is a minor problem with python libaries not being compatible, and while this should be fixed, it can be fixed with Fixum
  2. _imaging.so is not trusted. Perhaps there is a way to rebundle it differently, perhaps not as a .so file? Otherwise I think the only way is to sign it as an apple developer, but that costs money.
danielecook commented 4 years ago

@gandalfsaxe I'm on OS X Catalina and just tried the workflow out and it worked fine....

Is there a way to get around this in the user settings?

One think you may also try is to just clone the repo from github to your workflow folder maybe?

gandalfsaxe commented 4 years ago

I just tried on another Mac machine with macOS Catalina (10.15.3), same problem. I tried right clicking on _imaging.so and click "open", but it didn't make a difference.

I tried cloning/download the contents of the repo directly to workflows folder instead of running the Alfred.Image.Utilities.alfredworkflow file. The workflow correctly showed up in Alfred preferences, but didn't do anything when I an operation on a photo. No error, but no new photo either.

danielecook commented 4 years ago

Maybe if we remove the .so file python will rebuild it...

gandalfsaxe commented 4 years ago

Unfortunately not:

image

[17:25:22.422] ERROR: Alfred Image Utilities[Run Script] Traceback (most recent call last):
  File "convert.py", line 3, in <module>
    from PIL import Image
  File "/Users/gandalf/Documents/-sync/Alfred/Alfred.alfredpreferences/workflows/user.workflow.B86CC126-66D2-4927-AD95-1141DE127FC4/PIL/Image.py", line 67, in <module>
    from PIL import _imaging as core
ImportError: cannot import name _imaging
richardsison commented 4 years ago

Cool… not just me. Any update on this? 🙏

zeshanshani commented 2 years ago

Any update on this yet? I used Fixum workflow to fix the pyton support for catalina. But now it just generates a blank image.