You can now post your pics from gimp.
I ported like 80% of my krita plugin to #gimp. it's alpha but does the job.
single py file you just install in ~/.gimp-2.8/plug-ins on #linux
(make plugin executable)
not macOS compatible. Windows untested atm
@spaceotter if you use `#!/usr/bin/env python` that should be more platform independent
@hirojin True. I'll make the change and commit it. Thank you. 😄
@spaceotter THIS IS AMAZING
@SuperLeo thank you
I'm trying it on Windows 7...
Don't like the popup to tell me to create an account, that doesn't have an OK button.
I assume that after I enter the Mastodon Server URL and press authorize I would get a dialog asking for username/password? Because it seems to hang at that point.
A very quick look at the code shows "print" statements. This is catastrophic on Windows as they get sent to a fixed size buffer that never gets flushed - causing hangs.
@paynekj it takes a moment. no more than a minute or two. did it bring up a web browser.
After redirecting the stderr and stdout I can see an error if the url contains htps://: undefined global url. Without that it opens a browser window, but that just times-out. On Windows running from the command line doesn't get you the output of the print statements. See https://www.gimp-forum.net/Thread-Debugging-python-fu-scripts-in-Windows?highlight=sys.stderr for how to redirect stderr/stdout
@paynekj I'm redirecting mine to a log file. I'll let you know what I find. At the moment I'm seeing an SSL issue.
released an update on github.
* fixes the missing url bug you pointed out. thank you.
*added an ok button to the popup.
* removed all other popups. For some reason these popups freeze under window (despite working on mac and linux).
* added logs. logs are created in the .gimptoot folder
these fixes might not be enough (there's an SSL issue), but could you please give it a try. thank you.
@spaceotter That seems to work. I was already logged into Mastodon when I added the URL and it took a couple of minutes to authorize, but it is successfully tooting pictures now.
@paynekj 🙌 🙌 yay. Hopefully I can get some further updates soon. I'll publicize any updates here.
np I'll add the ok button back.
after clicking authorize python should open a web browser. sometimes it opens a tab. on rare occasion no browser is launched...
I'll run it on Windows later today. I hope I can see those print statements if I run gimp from the command line (they should be only a few bytes. < 1KB )
Thank you for looking into. I'll let you kmow what i find/fix
Mastodon.ART — Follow friends and discover new ones. Publish anything you want & not just art of all types: links, pictures, text, video. All on a platform that is community-owned and ad-free.