Gallery for Immich

توسط

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
  • Video playback modes (shared links, proxy via fopen, or ignore videos)
  • 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)
  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
    • sharedLink.create – Required when using video mode ‘Shared Link’
    • sharedLink.delete – Required when using video mode ‘Shared Link’
  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. Choose Video playback mode (shared links, proxy via fopen, or ignore videos)
  5. Save changes

Video playback modes:

  • Shared links (default) – Creates temporary shared links on Immich. Videos stream directly from Immich and links expire automatically.
  • Proxy via fopen – Streams videos through WordPress. Most elegant solution, but requires fopen support on the WordPress server which is not always supported.
  • Ignore videos – Hides videos in galleries and only shows photos.

سوالات متداول

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.

تصویری برای این آیتم موجود نیست.
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
0.7.0 74 کیلوبایت -
دانلود
×
★★★★★
★★★★★
5.0 /5 (2 نظر)

قیمت:

رایگان

نگارش

0.7.0

آخرین انتشار

20 اردیبهشت 1405

آخرین بروزرسانی

3 ماه پیش

نصب های فعال

70+

نگارش وردپرس

وردپرس 5.8+

تست شده از نسخه

وردپرس 6.9.4

نگارش PHP

PHP 7.4+

نسخه ها

1 نسخه