Giter Club home page Giter Club logo

kritatoot's Introduction

KritaToot

a simple ready-to-use plugin with no external dependencies

A plugin for Krita 4.x that lets you post a copy of your current document directly on Mastodon.

Adds Tools > Scripts > Post on Mastodon menu option when enabled.

A copy of the current document is always exported and posted.

If the current document has never been saved, the exported image defaults to a PNG.

You can also specify a message (optional), the privacy setting of your toot (Public, Unlisted, Followers-Only, Direct) and whether you want to hide your image behind a warning title card.

If no message is given, the default is to include the following: posted with KritaToot

Log files are written to ~/.kritatoot on Linux.

Installation

Krita 4.0.0 on Linux

Download a zip file and copy the kritatoot folder and the kritatoot.desktop file into the following location:

~/.local/share/krita/pykrita

Enable plugin: Settings > Configure Krita... > Python Plugin Manager > kritatoot

Krita 4.0.0 on Windows

Download a zip file and copy the kritatoot folder and the kritatoot.desktop file into Krita's Resource Folder (Settings > Manage Resources > Open Resource Folder). It's usually a folder somewhere in the hidden AppData folder.

Enable the plugin: Settings > Configure Krita... > Python Plugin Manager > kritatoot

You may need to restart Krita

Limitation

At the moment:

  • You can post one image per toot.
  • Specifying a focal point is not implemented
  • no input for alternate text
  • Maximum file size and file types are set by the Mastodon server

TODO

  • implement focal point support or equivalent feature
  • determine the best way to add support for multiple images per toot, in an orthogonal fashion. e.g. If an open doc is the subject of a toot's image how do we indicate other images (other open docs?), especially their order.
  • add support for alternate text
  • add support for spoiler text?

License

This script is licensed under an (Expat) MIT License. Feel free to fork

kritatoot's People

Contributors

spaceottercode avatar therahedwig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

kritatoot's Issues

Error:Communication Failed.

URL https://busshi.moe
Chrome shows Failed to find authorization code in GET request
Krita shows Error:Communication Failed.
And when I re-enter krita,it shows no Mastodon Server.

I don't know how to make it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.