| Class | HTML::Pipeline::ImageMaxWidthFilter |
| In: |
lib/html/pipeline/image_max_width_filter.rb
|
| Parent: | Filter |
This filter rewrites image tags with a max-width inline style and also wraps the image in an <a> tag that causes the full size image to be opened in a new tab.
The max-width inline styles are especially useful in HTML email which don‘t use a global stylesheets.