I am trying to figure out why images in the Media Library have alt text, but then when I query our Prismic API and look at the data alt: null. Has anyone else run into this issue? I'm sure its the same image as the filenames match. It is not all images, just a handful of .svg we have.
I do not see any alt text for this specific image within the document where it is used, so I assume then it should inherit whatever is specified in the media library?
If anyone has seen this and has any insights let me know. Thanks!
I have tried to upload some SVGs in one repository and couldn't reproduce the issue.
So In order to reproduce this issue, I would need your repository name (you can share it is a private message if necessary) as well as a link/name of the images that have the problem with the documents you are queuing from the API where the alt is not appearing.
Thanks so much for looking into this, I really appreciate it! I will look out for any updates from you on this issue.
1 Like
Fares
closed , flag & select 'Something Else' to reopen.
10
This thread is being monitored as an open ticket in the issue tracker. We will update this post as we get more information. If you have a similar use-case, you can ‘Flag’ this topic to reopen.
I've come across the same problem, an easy fix was to delete the image, re-uploading it and reassigning a alt text, then I was able to see it sent by the API and retrieve it into my code.