We've all been figuring out how to do stuff here, and one thing that's been lacking is gifsets, and gifs generally.
I've been playing around and think I figured it out - my current solutions are a bit clunky, but they work. Stuff to know about posting images:
How to post a gif stored in your Photos on Hubzilla
- there are two ways to view pics in your "Photos". The main view (a still image) and the "gallery" view (reached within Photos by clicking on the pic. It then displays with a black background and if it's a gif it'll move.)
- this site uses BBCode (BBC). I know basic html and recently started getting my head around markdown but this is another language - very like html but a bit simpler and using square not angle brackets, but better for images than markdown as you can't specify image size in markdown. You can google lists of BBCode syntax.
- posting a pic from your Photos gives you a scary-looking wodge of BBCode. In fact this is two things:
- an inner address for the basic image (the gif won't move)
- an outer url link to the moving gif in "gallery view" in your Photos
How to post a gif stored somewhere else.
- Click on the image icon in the options at the base of the posting field, then select the gif you want from your Photos. the BBCode inserts into your posting field.
- Delete the outer 'envelope' address from the start and end of the code chunk, just leaving the inner, basic pic address. It'll start with
[zmg] and end with [/zmg]
- Trim the last bit of code from the pic address. It'll be something like -2.jpg or -2.gif. You can see what to get rid of by comparing the pic address codes when the big chunk of code is inserted. You want to end up with the simpler version from the outer url address envelope, which just ends with a string of numbers.
- Check you got it right in preview (by clicking the eye to the left of the share button). If you got it right, the gif will move in preview.
- Here's an example of how to trim the code for a moving gif - delete the yellow bits:
- To change the size of your pic, edit the width number - the first one after zmg. As far as I can tell this site won't post pics stored here at all unless they have both width and height numbers in that exact widthxheight format, BUT ONLY THE WIDTH MATTERS. There has to be a number there for height, but it can be anything. This is great as it means you can change the width number without touching the height, and the pic will display just fine, no calculations needed. Let me know if anyone finds an OS where that isn't true, but it works for me on pc and mobile. Seems like it's literally a feature not a bug.
- This requires a little BBCode writing, but is slightly simpler. However only if you've got a place elsewhere to store images and get the direct embedding link for a pic (I use Mediafire).
- Get the direct link for the pic. The posting code format is:
[img]direct-link-for-gif-in-mediafire[/img]. Unlike with pics stored here, with pics stored elsewhere it seems you don't need to specify width and height if you don't need to change the size.
- It's that simple. Again, check it in preview.
- If you want to specify a different size for the pic, as above, you need to add the width and any old number for the height (I made the height 100 here; it's actually 500). So this is the full-size gif:
And a smaller version:
That's it - let me know if you find any glitches with this, and then I'll add it to @daphneblithe
's how-to gdoc.