Skip to main content
Home

Main navigation

  • Home
  • Updates
  • About me
User account menu
  • Log in

Breadcrumb

  1. Home

Considering inline images and content header image specifications in Drupal 11

By joehahn , 2 September 2025
Glitched animation of classic broken image icon

For starters, to preserve a .GIF animation for the header image, I want the original image to display rather than a rendered image-style. 

The default image style is Image style: Wide (1090), which converts the image to .webp, disabling the animation.

Drupal content type field display settings

For the Article display, we will change that to None (original image). This will preserve the animation.

Image style setting

For the sake of page load times and bandwidth, you will want to be aware of how to optimize any .GIF animations.

The header image of this article is 1620x540 and 48 frames, 24 frames for a two second loop. It has a limited color palette, and there is not much motion outside the icon, and unchanged pixels between frames will not increase the file size.

The result is a 368kb image. 

If the image was something more like a full-color movie clip of the same resolution and length, it could increase the size to ten megabytes or more, which should be avoided. 

For inline images, this example was copy/pasted into CKEditor from the Windows file explorer. Let's see how it appears after saving...

Animation of classic broken image icon

Copy/pasting from file explorer worked. The inline image has the same filename and file size as the original.

The result is the same if pasting from the built-in Windows photo viewer, or from a Chrome browser tab if the image being displayed is from the web. 

If pasting from a local image opened in Chrome, pasting as an inline image fails for both animated and still images.

Image removed.

 

Tags

  • Drupal

Recent content

  • The Great Google Migration: Why This Android Veteran is Ditching Gemini for Home Assistant
    1 day 6 hours ago
  • I'm building an arcade racer music maker for a game development course
    2 weeks ago
  • The Case of the Crashing "Open File" Dialog in Windows 11
    2 weeks ago

Monthly archive

  • August 2025 (1)
  • September 2025 (7)
  • October 2025 (1)
Powered by Drupal