Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Alt text for GIFs #3

Open
jamietanna opened this issue Oct 12, 2020 · 1 comment · May be fixed by #4
Open

Alt text for GIFs #3

jamietanna opened this issue Oct 12, 2020 · 1 comment · May be fixed by #4

Comments

@jamietanna
Copy link

Does the Gfycat API provide any information for alt tags? My site currently enforces alt tags on posts, and I'm wondering if there's anything automagic we can be sending, or maybe whether we could add an option to have user-provided alt text when publishing a GIF via Micropub?

@martymcguire
Copy link
Owner

thanks @jamietanna ! the gfycat API doesn't really provide useful alternative descriptions.

you can (kind of) see the docs for fetching info about a single gfycat image here: https://developers.gfycat.com/api/#getting-info-for-a-single-gfycat

it has 'title' and 'description' fields, but they are often not useful. e.g title is often "Untitled" or something like "laughing". Description is often empty. There are tags available as well, but they're more often for referencing the creator's other entries than actually descriptive of the image.

It is definitely possible to add an alt text to the image when posted via micropub BUT, it's a big change in terms of Micropub implementation support on both sides.

For example, a Micropub POST for a reaction image can be as simple as a form-encoded post with photo and maybe in-reply-to values. To represent an image + alt in microformats2 for a Micropub post means it's a photo object, with the URL in value and the alt as alt.

... at least, that's the best i have been able to find! it could be i am behind on the state of the art on this.

jamietanna added a commit to jamietanna/kapowski that referenced this issue Jan 16, 2021
To make published GIFs, via Micropub, more accessible, we should allow
alt text to be added to the images.

As per conversation on martymcguire#3, this can't be reliably done through the
Gfycat API, so we should instead allow the user to provide this
information.

As we're using a JSON post, we need to construct an object for the
photo property as per https://micropub.spec.indieweb.org/#json-syntax

Closes martymcguire#3.
@jamietanna jamietanna linked a pull request Jan 16, 2021 that will close this issue
jamietanna added a commit to jamietanna/kapowski that referenced this issue Jan 17, 2021
To make published GIFs, via Micropub, more accessible, we should allow
alt text to be added to the images.

As per conversation on martymcguire#3, this can't be reliably done through the
Gfycat API, so we should instead allow the user to provide this
information.

As we're using a JSON post, we need to construct an object for the
photo property as per https://micropub.spec.indieweb.org/#json-syntax

Closes martymcguire#3.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants