ezDoc User Guide

Working with Images

Add and manage images in your documentation with ezDoc's built-in image manager.

Inserting Images

Using the Insert Image Button

Adding Images
  1. Click the 🖼️ Insert Image button in the toolbar
  2. Choose between two tabs:
    • Upload New - Add a new image
    • From Library - Use an existing image

Upload New Image

  1. Click "Choose a file"
  2. Select an image from your computer
  3. See a preview
  4. Add alt text (required)
  5. Choose a display style
  6. Click "Insert Image"

From Library

  1. Browse existing images
  2. Use search to filter
  3. Click an image to select it
  4. Add alt text
  5. Choose display style
  6. Click "Insert Image"

Supported Formats

  • JPG/JPEG
  • PNG
  • GIF
  • SVG
  • WebP

Display Styles

Simple Image

Basic image tag with no special styling.

Responsive (Full Width)

Image scales to container width.

Centered

Image centered on the page.

Rounded Corners

Image with rounded corners.

With Caption

Image with a caption below (figcaption).

16:9 Ratio Container

Image in a 16:9 aspect ratio container.

4:3 Ratio Container

Image in a 4:3 aspect ratio container.

Square Container

Image in a square container.

Avatar (Circular)

128x128 circular image, perfect for profile pictures.

Alt Text

Alt text is required for:

  • Accessibility - Screen readers
  • SEO - Search engines
  • Fallback - When images don't load

Writing Good Alt Text

Good:

  • "Screenshot of the dashboard showing user statistics"
  • "Diagram illustrating the authentication flow"
  • "Logo of Company Name"

Bad:

  • "Image"
  • "Screenshot"
  • "Picture1.png"

Image Library

Viewing Images

The library shows all images in assets/images/ with:

  • Thumbnail previews
  • File names
  • Search functionality

Reusing Images

Images uploaded once can be reused across multiple pages without re-uploading.

Managing Images

To delete images:

  1. Navigate to your project folder
  2. Open assets/images/
  3. Delete unwanted files

Image Paths

Images use relative paths:

../assets/images/photo.jpg

This ensures images work in:

  • The editor preview
  • Exported documentation
  • Any location

Best Practices

File Names

  • Use descriptive names
  • Avoid spaces (use hyphens)
  • Keep names lowercase
  • Example: user-dashboard-screenshot.png

File Sizes

  • Optimize images before uploading
  • Use appropriate formats:
    • Photos: JPG
    • Graphics: PNG
    • Icons: SVG
    • Animations: GIF

Organization

  • Store all images in assets/images/
  • Use subfolders for large projects
  • Delete unused images

Accessibility

  • Always provide alt text
  • Make alt text descriptive
  • Don't start with "Image of..."

Markdown Image Syntax

You can also use Markdown syntax:

![Alt text](../assets/images/photo.jpg)

HTML Image Syntax

Or use HTML for more control:

<img src="../assets/images/photo.jpg" alt="Description" class="is-rounded">

Image Galleries

Create image galleries using Bulma Elements:

  1. Click "Bulma Element"
  2. Select "Image Gallery (3 columns)"
  3. Replace placeholder images with your own

💡 Tip: Images are automatically copied when you export your documentation!