1 Beginner pathLesson 7 of 9 6 min read

Images and the Éclair media library

  1. 1. Discover Éclair CMS
  2. 2. Prepare your installation
  3. 3. Install Éclair step by step
  4. 4. Get to know the Éclair admin
  5. 5. Write and publish your first blog post
  6. 6. Pages, menus and home page
  7. 7. Images and the Éclair media library
  8. 8. Contact form and messages
  9. 9. Essential settings before launch
Contents
  1. Upload your images to the Éclair media library
  2. Which formats and sizes are accepted?
  3. What Éclair does with each image
  4. Write good alt text
  5. Place an image in a page
  6. Featured image, share image, logo and icon
  7. Delete an image without breaking a page
  8. Key points
  9. Going further
  10. Frequently asked questions

The Éclair media library stores all your site's images and optimizes them on upload: resizing, WebP conversion and removal of location data. This lesson teaches you to upload your photos, describe them for Google and accessibility, then place them in your pages, your posts and your header.

What you'll be able to do

Upload your photos

Drag and drop one or more images, from Media or from the editor.

Keep your site fast

Understand what Éclair does with each image so it stays light.

Describe your images well

Write useful alt text, by hand or with AI.

Upload your images to the Éclair media library

  1. Click Media in the side menu.
  2. Drag your files onto the Drag your images here or click to choose area, or click it to select them. You can upload several at once.
  3. Each image shows its progress as a percentage, then “Upload complete” followed by its name.
Éclair media library with the drop zone and the grid of uploaded images
Media: the drop zone and all your images

You don't need to leave the editor for this, though: the Media library window, which opens when you choose an image, has its own drop zone, and an empty Image block accepts a dragged file. The Search for an image… field filters the grid by file name or alt text.

Which formats and sizes are accepted?

RuleLimitMessage if refused
FormatsJPG, PNG, WebP, GIF“Unsupported format: JPG, PNG, WebP or GIF only.”
SVGRefused, for securityThe same message
Weight20 MB per image“Image too heavy (20 MB max).”
Dimensions40 megapixels“Invalid or oversized image dimensions (40 megapixels maximum).”
Host limitShown below the drop zone“File too large for your hosting”

Watch out for the most common trap: your host also sets a maximum size per upload, sometimes below 20 MB. Éclair shows it below the drop zone: in the screenshot above, “up to 2M” means 2 MB per upload, and a 5 MB photo would be refused there. On small hosting, a very large photo can also exceed the available memory: Éclair then asks you to shrink it to under 4000 pixels wide.

What Éclair does with each image

With PHP's GD extension (the setup wizard checks that it's there), each upload goes through four steps:

Example: Camille uploads a 3000 × 2000 pixel photo taken with her phone. Éclair scales it down to 2000 × 1333, erases its GPS coordinates and creates WebP versions at 480, 800, 1200, 1600 and 2000 px. Each visitor downloads the version suited to their screen, never the original of several megabytes.

Animated GIFs are kept, cleaned block by block. Without the GD extension, images stay as they are: a banner tells you so in Media, and it's best to compress them before uploading.

Lighthouse at 100 in all four categories, with the weight of an Éclair page
Light images to keep your site fast

Write good alt text

Alt text describes the image for people with visual impairments, to whom a screen reader reads it aloud, and for Google Images. In Media, click an image: the detail window shows its dimensions, its file size and its number of WebP versions. Fill in Alt text, then click Save.

AvoidBetter
IMG_2045Blue glazed stoneware bowl on a potter's wheel
“photo”A student's hands centering a lump of clay during a class
“ceramics ceramics Lyon”Atelier Nova's shop window full of vases, seen from the street

Place an image in a page

  1. In the editor, type / and choose Image.
  2. Click Add an image to choose from the media library, or drag a file into the block.
  3. Fill in Caption (optional), Alt text and, if needed, Link (optional).
  4. Choose the Size: Normal (the width of the text), Wide (wider than the reading column) or Small (reduced and centered).
  5. Later, Change image replaces the photo without recreating the block.

In Visual mode, one click on an image is enough to choose another one from the media library.

ImageWhere to set itGood to know
Featured imagePost editor › Document › Featured imageShown at the top of the post and on social media
Share imageAutomaticA 1200×630 version is generated once, from the featured image or the content's first image (at least 600 px wide)
Default share imageSettings › SEOUsed when content has no image
LogoSettings › Appearance › LogoPNG or WebP on a transparent background, about 400 px wide
Site icon (favicon)Settings › AppearanceSquare image, at least 512 px; without an icon, a lightning bolt in your color is generated

Delete an image without breaking a page

In the Éclair media library, open the image, click Delete, then confirm. If the image is still in use, Éclair shows “This image is used here:” with the list of content and settings concerned (logo, icon, share image, profile photo), then asks “Delete anyway?”. The right habit: first replace the image wherever it's used.

Key points

Going further

Frequently asked questions

Why is my SVG image refused?

For security, Éclair doesn't accept SVG, a format that can contain code. Export your logo as PNG or WebP on a transparent background, then upload it.

My 15 MB image is refused even though the limit is 20 MB. Why?

Your host sets its own limit per upload, shown below the drop zone. Shrink the image before uploading it, or ask your host whether that limit can be raised.

Should I convert my photos to WebP before uploading them?

No. Upload them as JPG or PNG: Éclair creates the WebP versions itself, if your hosting's GD extension supports that format.

Are my photos' GPS coordinates published?

No, if the GD extension is active: each image is then re-encoded on upload, which removes EXIF data, GPS included. Without GD, files stay as they are, so it's worth checking this point.

All the lessons of this path