Skip to main content
GrN.dk

Main navigation

  • Articles
  • Cases
  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

Drupal 8 Inline Responsive Images: A Practical Legacy Setup

By Greg Nowak. Last updated 2026-07-07.

If you inherited a Drupal 8 site, inline responsive images are not mainly a design polish task. They are an operations problem. Editors need a predictable way to place images inside body copy without guessing pixel widths, uploading oversized files, or breaking mobile layouts after every content update.

The right setup gives editors fewer choices, not more. Drupal should handle image derivatives and responsive markup; authors should choose from a small set of approved presentation options. For a legacy site, the bigger question is how much effort belongs in stabilising the current workflow and how much should move into the upgrade plan.

Start with the support reality

Drupal 8 reached end of life on November 17, 2021. That means Drupal 8-only core and contributed project releases are outside normal security support. So treat this work as containment: reduce publishing mistakes, keep pages usable, and avoid customising yourself further away from a supported Drupal 10 or Drupal 11 path.

Inline responsive images can still be worth fixing on a live Drupal 8 site when editors are actively publishing and image problems are creating QA or support load. It is rarely worth turning into a large standalone project. Keep the configuration simple enough to document, test, and migrate later.

What the setup should accomplish

Drupal's responsive image system maps image styles to breakpoints so smaller screens can receive smaller image files, while larger screens can receive more suitable derivatives. For inline body images, the contributed Inline Responsive Images module adds the missing editorial bridge: it lets users select a responsive image style or image style from the editor instead of typing dimensions by hand.

That distinction matters. Manual dimensions create one-off fixes. Responsive image styles create a reusable content rule. For business owners and operations leads, the value is less cleanup after publication, better consistency across articles, and a clearer path for agency teams who later have to upgrade or rebuild the theme.

Situation Best move Why it works
Drupal 8 site is still publishing weekly Stabilise inline responsive images with a small approved style set Reduces editor mistakes while the site remains live
Upgrade to Drupal 10 or 11 is already funded Prioritise CKEditor 5, Media Library, and supported module versions Avoids spending too much on Drupal 8-only workflow debt
Editors use many custom widths and alignments Replace free-form sizing with named styles and documented examples Makes layout behaviour easier to train and test
Image issues are mostly on listing pages or content types Fix field display and view modes before inline images Structured image fields are easier to govern than body HTML
A practical decision matrix for deciding how far to take inline responsive image work on a legacy Drupal site.

A disciplined legacy configuration

Start with image styles that match real editorial use cases. Three choices are often enough: inline_small, inline_medium, and one wider option for articles that genuinely need it. Avoid names that describe implementation details only. Editors understand “small inline image” better than “480w 2x crop”.

Next, make sure Drupal knows about the breakpoints your theme uses. CSS breakpoints alone are not enough when Drupal's Responsive Image module needs to map styles to viewport rules. Define them in your theme's *.breakpoints.yml file, with weights ordered from smaller to larger breakpoints. A compact example:

mytheme.editor_images.mobile:
  label: mobile
  mediaQuery: ''
  weight: 0
  multipliers:
    - 1x
  group: mytheme.editor_images

mytheme.editor_images.desktop:
  label: desktop
  mediaQuery: '(min-width: 64em)'
  weight: 1
  multipliers:
    - 1x
    - 2x
  group: mytheme.editor_images

After changing breakpoints, rebuild caches. On many projects that is simply:

drush cr

Then create or adjust the responsive image style at /admin/config/media/responsive-image-style. Map each breakpoint to the image style Drupal should use at that size. Keep the mapping boring: small derivative for mobile, sensible larger derivative for desktop, and high-density variants only where they are actually useful.

Configure the editor with restraint

The Inline Responsive Images module documentation is clear on one easy-to-miss point: enable either the Display responsive images filter or the Display image styles filter for a text format, not both. If the text format also uses filters such as Restrict images to this site or Track images uploaded via a Text Editor, test the filter order so the inline responsive image filter runs after the filters it depends on.

Expose only the styles editors should use. A short dropdown is governance. A long dropdown becomes a training problem, especially when multiple departments or agency teams publish into the same site.

Know when to use the modern path

If you are already planning an upgrade, do not over-invest in Drupal 8-specific editor behaviour. Current Inline Responsive Images 4.0 releases support Drupal 10.3 and Drupal 11 with CKEditor 5. The older 3.0 line is deprecated and targets older supported combinations. Use Composer deliberately:

composer require 'drupal/inline_responsive_images:^4.0'

For Drupal 10 and newer, CKEditor 5 and Media Library are the more future-facing editorial pattern. Media embedding is configured through the text format, the Media Library button, and the Embed media filter. That does not automatically replace every inline image use case, but it is usually the better direction for reusable assets, alt text workflows, captions, and view modes.

What I would recommend

If your Drupal 8 site must keep publishing for a few more months, stabilise inline responsive images now: define breakpoints properly, limit the style list, document the author workflow, and test a few real articles on mobile. If the site has budget for improvement, pair that cleanup with an upgrade plan so the same content problem is not solved twice.

Need a pragmatic plan for a legacy Drupal content workflow, image handling, or a low-risk upgrade path? Get in touch with Greg and make the next step clearer before the work gets bigger.

Related on GrN.dk

  • Importing External Data into Drupal: A Practical Migration Plan
  • Inline Image Pasting in Drupal
  • AI disclosure rules belong in the CMS, not a spreadsheet

Need help with this kind of work?

Plan a practical Drupal cleanup Get in touch with Greg.

Sources

  • Inline responsive images | Drupal.org
  • Concept: Responsive Image Styles | Drupal User Guide
  • Working with breakpoints in Drupal | Drupal.org
  • Embedding media with CKEditor 5 | Drupal.org
  • Drupal 8 is now end-of-life - PSA-2021-11-30 | Drupal.org
Last modified
2026-07-07

Tags

  • Drupal
  • Drupal 8
  • Responsive Images
  • Content Operations
  • Website migration
  • Log in to post comments

Review Greg on Google

Greg Nowak Google Reviews

 

Illustrated infographic summarizing: Shorter TLS certificates expose every renewal you never automated
Shorter TLS certificates expose every renewal you never automated
2026-07-26

Shorter TLS lifetimes leave less room for manual handoffs and faulty deploy hooks. Build a renewal path that protects service availability.

Illustrated infographic summarizing: One Timeout, Two Orders: Make AI Actions Safe to Retry
One Timeout, Two Orders: Make AI Actions Safe to Retry
2026-07-25

A timed-out AI action may already have succeeded. Stable keys, durable ledgers, queues and stored results prevent a routine retry from duplicating real work.

Illustrated infographic summarizing: Your AI Visibility Dashboard Needs a Methodology, Not More Charts
Your AI Visibility Dashboard Needs a Methodology, Not More Charts
2026-07-24

A practical framework for measuring AI-search visibility with fixed prompts, repeated tests, separate metrics, retained evidence, and honest reporting.

Illustrated infographic summarizing: AI Admin APIs Are Here—But Your Directory Is Still the Source of Truth
AI Admin APIs Are Here—But Your Directory Is Still the Source of Truth
2026-07-23

New AI admin APIs can automate access and spend controls, but reliable governance still starts with authoritative directory data and clear ownership.

Illustrated infographic summarizing: OpenAI Presence Arrived—But Is Your Workflow Ready for an Agent?
OpenAI Presence Arrived—But Is Your Workflow Ready for an Agent?
2026-07-22

Before an AI agent can take on real work, its workflow needs clear scope, permissions, handoffs, evaluation cases, and production monitoring.

Illustrated infographic summarizing: Chatbot Transcripts Quietly Became a Retention and Redaction Problem
Chatbot Transcripts Quietly Became a Retention and Redaction Problem
2026-07-21

Chatbot transcripts spread across providers, logs and support tools. Here is how to map each copy, redact sensitive data and test deletion properly.

Illustrated infographic summarizing: Cloudflare Service Keys Stop in September: Find Every Caller
Cloudflare Service Keys Stop in September: Find Every Caller
2026-07-20

Cloudflare Service Keys stop working on September 30, 2026. Here is how to find every caller, move to scoped API tokens and avoid a late outage.

Illustrated infographic summarizing: Your AI Workflow Needs an Acceptance Test Before It Meets Customers
Your AI Workflow Needs an Acceptance Test Before It Meets Customers
2026-07-19

A practical way to test AI workflows using realistic scenarios, tool checks, human rubrics, regression suites, and clear release gates.

Three cover candidates for The Goats Were Load-Bearing fanned on a dark background: an ember-lit door, three slow knocks, and a founders' ledger
The Goats Were Load-Bearing: a fantasy where the bill always comes due
2026-07-19

A teaser for the upcoming darkly comic fantasy novel The Goats Were Load-Bearing — a village, a door that must stay poor, and the worst possible time to sell the herd. Readers pick the cover.

Vegan Power game: the yellow player catches falling fruit while a chicken and a cow look on
Vegan Power: The Little Game About Eating Fruit, Not Friends
2026-07-19

Vegan Power is a free browser game where you catch fruit, dodge the animals, protect seven hearts, and chase a better high score.

More articles
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.