Auto Retina does not work with "Image Optimize (or ImageAPI Optimize)" pipelines

Created on 28 January 2023, about 2 years ago
Updated 31 January 2023, about 2 years ago

Problem/Motivation

Our site uses the "Image Optimize (or ImageAPI Optimize)" https://www.drupal.org/project/imageapi_optimize module to run our images through "ImageAPI Optimize WebP" https://www.drupal.org/project/imageapi_optimize_webp and "Image Optimize - reSmush.it" https://www.drupal.org/project/imageapi_optimize_resmushit .

We'd like to use Auto Retina but visiting the @2x version returns a 404.

Steps to reproduce

  1. Install "Auto Retina" module, use default settings
  2. Create an Image Style to "scale and crop" the image
  3. Visit the default 1x image style - Success
  4. Update the URL to put `@2x` just the extension - Success
  5. Delete derivatives created in step #3 and step #4
  6. Install "Image Optimize (or ImageAPI Optimize)" https://www.drupal.org/project/imageapi_optimize
  7. Install "ImageAPI Optimize WebP" https://www.drupal.org/project/imageapi_optimize_webp
  8. Create a pipeline with WebP Deriver
  9. Update Image style to use the new pipeline
  10. Visit the URL in step #3 - Success
  11. Visit the URL in step #4 - Fail: 404 error

Proposed resolution

I'm presuming that a hook needs to be added to Auto Retina to listen for requests through "Image Optimize (or ImageAPI Optimize)".

Remaining tasks

User interface changes

None

API changes

Data model changes

Feature request
Status

Active

Version

1.3

Component

Code

Created by

🇺🇸United States capellic Austin, Texas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024