Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: HeCAPTe 1.0.2 — Minor update available for module hecapte_captcha (1.0.2). Release: Attribution & Licensing 1.2.1 — Minor update available for module attribution (1.2.1). Release: MCP Sentinel 2.29.0 — Minor update available for module mcp_sentinel (2.29.0). Release: Audit Chain 1.10.9 — Minor update available for module audit_chain (1.10.9). Release: Menu Autopilot 1.4.7 — Minor update available for module menu_autopilot (1.4.7). Release: FileGate 1.11.3 — Minor update available for module file_gate (1.11.3). Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Picture Everywhere provides a plug and play override for image templates and preprocessing to enforce use of the HTML <picture> tag everywhere, as opposed to standalone <img> tags.

This may be useful to developers in particular:

  • Leave no question whether any given image element will be an <img> tag or a <picture> tag. Whatever the site's browser support matrix, and no matter any discussion around potential art direction for the specific image element, it's a <picture>.
  • Prepare for future possibilities. One of the <picture> tag's main use cases is offering multiple image formats to browsers. The last major browser to lack WebP support only reached its end of life in June 2022 - several years after WebP support had already started to see wide adoption. In any future cycle of adoption for a new image formats, serving the latest and smallest format may once again require offering browsers multiple formats via <picture> and <source> tags. That will be easiest to implement for existing sites if <picture>'s use is universal already.

Integration with SVG Image Field

This module also integrates with the SVG Image Field module automatically, if it is installed.

Optional enhancement with WebP module

Picture Everywhere also offers an optional enhancement meant to work together with the WebP module.

On websites that still need to support PNG and JPG formats, the out-of-the-box approach to serving both these formats and WebP requires a lot of configuration work. Duplicative image styles must be created that are "just like this other image style, but this time convert it to WebP." Then one still has to tie the two image styles together by way of a third piece of configuration in the Responsive Image module. Picture Everywhere can add a .webp <source> for all JPEG and PNG files. The WebP module is able to serve that source URL automatically. This means that Picture Everywhere together with WebP can let you go back to using the Responsive Image module only for pictures whose art direction requires it.

This enhancement is disabled by default and is not recommended for sites that no longer have to support browsers without WebP support. If you don't have to support older browsers, simply include WebP conversion in all of your image styles instead. You can still use this module to prepare for the possibility of future formats.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Feb 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.1 Stable May 30, 2024
1.0.0 Stable Mar 15, 2023
1.0.0-rc1 Pre-release Mar 13, 2023
1.0.x-dev Dev Mar 6, 2023
1.x-dev Dev Feb 27, 2023