-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
Currently, external images in the HTML pipeline don't have optimized processing. When external images include width and height parameters in their URLs, these valuable dimensions are not being utilized to improve performance and user experience.
Describe the solution you'd like
Add a new pipeline step processExternalImages that:
- Identifies external images (not starting with ./media_)
- Extracts width and height parameters from URL search params
- Sets hardcoded width=750 and quality=65 in the URL for optimization
- Adds width and height attributes to the image element
- Preserves title as data-title attribute when different from alt
Describe alternatives you've considered
- Using original width/height values in URL(rejected - consistent sizing needed for page performance)
- Not processing external images at all (rejected - missing optimization opportunity)
Additional context
Implementation Details -
- New step: src/steps/process-external-images.js
- Integrated into html-pipe.js pipeline
- Comprehensive test coverage with three scenarios
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request