How to Add Pictures to Your Poetry Website

1. Accessing Sanity Studio

First, you need to access your Sanity Studio. Press Ctrl+Alt+A on any page of your website to reveal the hidden admin link, or navigate directly to /studio and enter your credentials.

2. Adding Images to Poems

Each poem can have a cover image. Here's how to add one:

  1. In Sanity Studio, navigate to the "Poems" section
  2. Select an existing poem or create a new one
  3. Find the "Cover Image" field
  4. Click on it to open the image upload interface
  5. Either drag and drop an image or click to browse your files
  6. Once uploaded, you can adjust the "hotspot" to control how the image is cropped
  7. Save the poem

Image Requirements

  • Recommended size: 1200 × 800 pixels for cover images
  • Supported formats: JPG, PNG, WebP, GIF
  • Maximum file size: 10MB

3. Adding Images to Poets

You can add profile images for poets following a similar process:

  1. Navigate to the "Poets" section in Sanity Studio
  2. Select a poet or create a new one
  3. Find the "Image" field
  4. Upload an image (preferably a portrait or headshot)
  5. Adjust the hotspot to focus on the face
  6. Save the poet

4. Adding Images to Collections

Poetry collections can also have cover images:

  1. Navigate to the "Collections" section
  2. Select or create a collection
  3. Upload an image to the "Cover Image" field
  4. Save the collection

5. Image Best Practices

  • Use high-quality, relevant images that enhance the poetry
  • Consider the mood and theme of the poem when selecting images
  • Optimize images for web before uploading (compress without losing quality)
  • Use consistent aspect ratios for similar content types
  • Add alt text for accessibility (in the "Alternative Text" field when uploading)

6. Managing Your Images

Sanity includes a built-in asset management system. To see all uploaded images and manage them:

  1. In Sanity Studio, look for "Content" in the main navigation
  2. Select "Files & Images" from the dropdown
  3. Here you can view, search, and delete images

Need Help?

If you need more assistance with images or have questions about Sanity Studio, refer to the Sanity documentation.