Gallery for Immich

Descripción

Gallery for Immich is a WordPress plugin that seamlessly integrates your self-hosted Immich photo server with your WordPress site. Display beautiful photo galleries and albums using simple shortcodes.

Key Features:

  • Gutenberg Block Editor – Visual block for selecting albums, photos and settings
  • Shortcode Support – Classic [gallery_for_immich] shortcode for any editor
  • Display list of albums from Immich
  • Display entire albums from Immich
  • Beautiful responsive grid layouts
  • Integrated lightbox with GLightbox
  • Flexible sorting options (date/name, ascending/descending)
  • Full internationalization support (Dutch, German, French translations)
  • Configure Immich server URL and API key in the WordPress admin panel

Perfect for:

  • Photography portfolios
  • Family photo sharing
  • Event galleries
  • Travel blogs
  • Any self-hosted photo management with Immich

Usage

Using the Gutenberg Block Editor:

The easiest way to add an Immich gallery is through the Gutenberg block editor:

  1. Add a new block and search for “Gallery for Immich”
  2. Select your display mode (all albums, single album, multiple albums, or single photo)
  3. Configure display options using the sidebar controls
  4. Customize thumbnail size and text sizes as needed
  5. The preview shows the shortcode that will be used

Using Shortcodes:

You can also use shortcodes directly in your content:

Display all albums:
[gallery_for_immich]

Display specific albums (comma-separated IDs):
[gallery_for_immich albums=”album-id-1,album-id-2″]

Display single album:
[gallery_for_immich album=”album-id”]

Display single photo:
[gallery_for_immich asset=”photo-id”]

Customize display options:
[gallery_for_immich show=”gallery_name,asset_description”]

Available show options (no defaults – must be explicitly specified):
* gallery_name – Show album/gallery name
* gallery_description – Show album description
* asset_date – Show photo date
* asset_description – Show photo description

Note: If the show parameter is not specified, only thumbnails are displayed without any text.

Customize sizes:
[gallery_for_immich size=”300″ title_size=”18″ description_size=”15″ date_size=”12″]

Size options:
* size – Thumbnail size in pixels (100-500, default: 200)
* title_size – Title font size (10-30, default: 16)
* description_size – Description font size (10-30, default: 14)
* date_size – Date font size (10-30, default: 13)

Sort order:
[gallery_for_immich order=”date_desc”]
[gallery_for_immich album=”album-id” order=”description_asc”]

Available order options:
* date_desc – Newest first (default for albums)
* date_asc – Oldest first (default for photos – chronological order)
* name_asc – Alphabetically A-Z (albums only)
* name_desc – Alphabetically Z-A (albums only)
* description_asc – Alphabetically A-Z by description (photos only)
* description_desc – Alphabetically Z-A by description (photos only)

Note: Name sorting is only available for albums. Photos can be sorted by date or description.

Privacy & Security

This plugin:
* Connects to your self-hosted Immich server via API
* Does not collect or transmit any user data to third parties
* Requires HTTPS for production security
* Validates all user input and API parameters
* Uses WordPress security best practices

Your Immich server credentials (URL and API key) are stored in your WordPress database.

Support

For issues, feature requests, or contributions, please visit:
https://github.com/vogon1/immich-wordpress-plugin

Credits

  • Lightbox powered by GLightbox (https://github.com/biati-digital/glightbox)
  • Integrates with Immich (https://immich.app)

Bloques

Este plugin proporciona 1 bloque.

  • Gallery for Immich Display photos and albums from your Immich server

Instalación

  1. Install via WordPress admin: Plugins > Add New > Search for “Gallery for Immich”
  2. Click “Install Now” and then “Activate”
  3. Or upload the plugin files to /wp-content/plugins/gallery-for-immich/ directory and activate through the ‘Plugins’ menu

Configuration:

After activation, configure your Immich server connection:

Step 1: Create an Immich API Key

  1. Log in to your Immich server with the user account whose photos you want to display
  2. Go to Account Settings (click your profile picture in the top right)
  3. Navigate to API Keys tab
  4. Click New API Key
  5. Give it a descriptive name (e.g., “WordPress Plugin”)
  6. Set the following minimum required permissions:
    • album.read – Required to list and view albums
    • asset.read – Required to access photo metadata (EXIF data, descriptions, dates)
    • asset.view – Required to retrieve photo thumbnails
    • asset.download – Required to retrieve original full-size photos
  7. Important: Only grant read-only access. Never grant write permissions for security reasons.
  8. Click Create and copy the generated API key

Step 2: Configure the Plugin in WordPress

  1. Navigate to Settings > Gallery for Immich in your WordPress admin
  2. Enter your Immich server URL (e.g., https://immich.example.com)
  3. Paste the API key you created in Step 1
  4. Save changes

FAQ

What is Immich?

Immich is a self-hosted photo and video backup solution. Learn more at https://immich.app

Do I need my own Immich server?

Yes, this plugin requires a running Immich server with API access.

How do I find my album or photo IDs?

You can find IDs in your Immich server’s URL when viewing albums or photos, or through the Immich API.

Does this work with localhost?

Yes, for development purposes localhost URLs (http://localhost or http://127.0.0.1) are allowed. Production servers must use HTTPS.

Can I customize the appearance?

Yes, the plugin generates standard HTML with CSS classes. You can override styles in your theme’s CSS.

Is the plugin translated?

Yes, the plugin is fully internationalized and includes translations for:
* Dutch (nl_NL) – Nederlands
* German (de_DE) – Deutsch
* French (fr_FR) – Français

Additional translations can be contributed via .po files in the languages directory.

Reseñas

16 de Diciembre de 2025 1 respuesta
Since I started running Immich (self-hosted photo server, drop in replacement for google photos) I’ve been looking for a way to use Immich to serve images for Wordpress. This plugin solves the problem almost completely. The images stay on your Immich server and show quite promptly (depending on your setup) in Wordpress, one at a time or albums at a time. There are a bunch of tweaks to include additional data including descriptions, titles, dates etc. I’ve found it very useful. Currently it doesn’t show videos so ensure the albums you load don’t have videos.
Leer 1 comentario

Colaboradores & Desarrolladores

“Gallery for Immich” es software de código abierto. Las siguientes personas han contribuido a este plugin.

Colaboradores

“Gallery for Immich” ha sido traducido en 1 idioma. Gracias a los traductores por sus contribuciones.

Traduce “Gallery for Immich” a tu idioma.

¿Interesado en el desarrollo?

Revisa el código, echa un vistazo al repositorio SVN, o suscríbete al registro de desarrollo por RSS .

Historial de cambios

0.5.0

  • Release date 17 December 2025*

  • New: Support for videos from Immich

  • For single asset: define alignment to allow text around the asset

0.4.0

Release Date – 10 December 2025

  • New: Gutenberg block “Gallery for Immich” with visual editor
  • New: Full Gutenberg block support with all shortcode features
  • New: Full translation support for Dutch, German, and French

0.3.3

Release Date – 9 December 2025

  • WordPress.org compliance improvements
  • Fixed: Removed direct file access
  • Fixed: Added translation support for plugin name and description
  • Updated: License changed to GPLv3 for consistency
  • Improved: Image proxy now uses query parameters instead of direct PHP files
  • Improved: glightbox in its own namespace

0.3.1

Release Date – 29 November 2025

  • Added flexible sorting with order parameter (none, date_asc, date_desc, name_asc, name_desc)
  • Albums can be sorted by date or name, ascending or descending
  • Photos can be sorted by date (ascending/descending) or use Immich’s original order
  • Default sorting: albums newest first (date_desc), photos oldest first (date_asc/chronological)
  • Uses standard database terminology (asc/desc)
  • WordPress.org compliance: bundled GLightbox locally (no CDN dependencies)
  • Removed load_plugin_textdomain() – WordPress.org handles translations automatically
  • Removed debug error_log() calls for production
  • Full WordPress Plugin Check compliance with zero errors
  • Ready for WordPress.org plugin directory submission

0.3.0

Release Date – 29 November 2025

  • WordPress.org compliance: bundled GLightbox locally (no CDN dependencies)
  • Removed load_plugin_textdomain() – WordPress.org handles translations automatically
  • Removed debug error_log() calls for production
  • Full WordPress Plugin Check compliance with zero errors
  • Ready for WordPress.org plugin directory submission

0.3.0

Release Date – 29 November 2025

  • Disabled zoom functionality in lightbox (removed confusing zoom icon)
  • Improved lightbox user experience with cleaner interface
  • Code hardening for enhanced security
  • Enhanced documentation with API key setup instructions
  • Added security and privacy information in README
  • Added access control documentation
  • Updated installation instructions with detailed API key permissions

0.2.1

Release Date – 29 November 2025

  • Enhanced security: UUID validation for all IDs
  • Added HTTPS enforcement for production
  • Improved input sanitization and validation
  • Added timeout settings for API requests
  • SSL verification enabled
  • Better error handling and logging
  • Security headers for image proxies
  • Sanitization callbacks for settings
  • Capability checks for admin access

0.2.0

Release Date – 27 September 2025

  • Added photo sorting by dateTimeOriginal (chronological order)
  • Added album sorting by endDate (newest first)
  • Improved photo descriptions in lightbox
  • Added EXIF date display
  • Enhanced grid layouts with CSS Grid
  • Added hover effects and animations
  • Portrait photo support with object-fit

0.1.0

Release Date – September 2025

  • Initial release
  • Basic album and photo display
  • GLightbox integration
  • Shortcode support
  • Internationalization support
  • Dutch translation included