What would you put for src in an inline image tag to access an image in the Prismic media library?

I have an image that the client wants to be on the side of a bunch of text and to do so would require the use of an inline image. The issue is that I have no idea how to access the images saved to the media library in Prismic. What would you put in an inline image as the src value to access these images?

Hi @asa1,

Welcome to the community :slight_smile:

Could you clarify where exactly you need that image, and if you want to call it dynamically? Do you want it to be "hardcoded" in this position in your code directly, or are you working in a Prismic Rich Text field?

If it helps, you can get the direct URL of an image in the Media Library by selecting it there and clicking on this button on the right side panel:

Otherwise, feel free to give me more details and I'll help you out :slight_smile:

It's in rich text! I didn't realize it was something you could do in the text field but the commands menu made it clear. Thank you for the direction!

1 Like