darktable-org / lua-scripts

148 stars 108 forks source link

Pixelfed storage #260

Open sanpii opened 4 years ago

sanpii commented 4 years ago

Hello,

Pixelfed is a federated photo sharing software.

Describe the solution you'd like It would be nice to have a storage module to export photo to a pixelfed instance.

Alternatives The API is the same as mastodon (a federated social networking), it’s probably a better idea to add a mastodon module.

Additional context

supertobi commented 4 years ago

Don't expect someone else to write this module for you. This is very unlikely, but not impossible. But we will help you if you have questions.

I would recommend to start with trying to send a photo via cURL from the command line to Pixelfed and then integrate it into a script. We have an example, how to use a web API with cURL in a Lua script here: https://github.com/darktable-org/lua-scripts/blob/a3d0983d3379f18d07db2512babebfbf1c1addcc/contrib/geoToolbox.lua#L351

And for the export we have a lot of examples like this ones: https://github.com/darktable-org/lua-scripts/blob/master/contrib/pdf_slideshow.lua https://github.com/darktable-org/lua-scripts/blob/master/contrib/kml_export.lua https://github.com/darktable-org/lua-scripts/blob/master/contrib/hugin.lua