With @jgraup ‘s help in comments, I had a look at the responsive images plugin linked there. While that particular one has several other filters on things like post content which I would have preferred not to use, the RespImg class included is exactly what I was wanting. I was originally considering what would be required to remove all the filters added by the plugin… it’s only 5 or 6, however I found a more barebones version of the same class here: https://github.com/nwtn/wp-respimg . It does not include any of the filters other than the one to add that editor class, and dropped into my project nicely.
Related Posts:
- Setting JPEG compression for custom image sizes doesn’t work in specific cases
- Image Quality Thumbnail Compression in WordPress?
- How to keep WP from recompressing Full Size images
- Disable all resizing and compression
- Image increasing kb on resize
- Should I not compress my jpeg files before uploading to avoid double compression?
- Google Page Speed Insights – Optimize Images
- Advice on image heavy site, compression and slow page loads
- Stop WordPress compressing images? – Quality is terrible
- Blurry images when using add_image_size with crop
- Having an issue in compressing Images in wordpress site
- Alternative image sizes are too large
- Run function before uploaded image is saved
- remove or update add_image_size
- get the attachement url for the medium sized image
- Is there a simple way to just insert a link to an image (without inserting an image)?
- Watermarking Images with WordPress with WP_Image_Editor
- Auto-modifying original [full size] images
- Get attachment ID of author_meta image – Attachment Metadata
- Black and White thumbnails
- Alter image output in content
- How can I remove the image attachment ALT field?
- Open the attachment details modal
- Download button for Featured Image in every post – automatically
- Change html structure of all img tags in WordPress
- Get a list of all image sizes that match aspect ratio of original one
- Insert image in comment reply
- Randomly add a ‘ul’ list of images
- Include photos in WordPress blog posts without uploading to Media Library
- Thumbnails are bigger in size than the original image
- The the post id from image id
- Add attribute to caption shortcode from custom attachment field
- Get an image’s alt text in a shortcode using the image URL
- Add Small Image Size to Media Settings
- function to show only featured image of the posts
- Image resize depending on orientation?
- Character Limit w/ Excerpt removes Images Why?
- Featured images not displaying at full resolution
- Check if the image exists in WordPress media library
- Faster way to put images into a blog post by using Add Media dialog
- WordPress adds extra width to post images container boxes
- Retrieve an array of image URLs that belong to a gallery
- Images uploaded to the media library has strange colors. However, in the edit screen the color is ok
- wordpress post pagination with image buttons?
- How can I change get_the_post_thumbnail to make 100% width image?
- Native gallery sorting is ignored
- Disable lazy loading on specific images
- Using Jetpack carousel w/o creating a gallery [closed]
- WordPress Facebook Open Graph plugin not working for 1 specific image [closed]
- Custom responsive ‘featured image’ sizes
- removing the featured image from the post
- Dynamic image crop in WP 3.0+?
- What can i do add title to ‘large’ image?
- Height and width attribute not setting by the_post_thumbnail
- WordPress cutting images size
- How to set minimum required size for featured image?
- Errors and warning with padlock sign when site moved to SSL
- Whats causing image quality to be degraded?
- Exclude image url from search query
- Inserting image into post with different image size
- WordPress Resize Image and show as thumb in post
- Resize uploaded images [duplicate]
- Image “description” and SEO within WP
- Indicate image sizes for upload by post type
- Why can’t I gain access to my homepage images?
- Family collaboration to identify ancestors on pictures
- How to change Gallery image url in product page ? In function.php?
- Display image of child element in wordpress
- How do you obtain a list of all image file names on a wordpress website for replacement?
- Form File Upload Field generates multiple copies of Image Files (different sizes): Is this a WP feature or is this being done by the Plugin
- Responsive header image
- Text Wrapping in Editor not Matching Website View
- Duplicate images on upload
- Broken images on iphone
- Redirect when user clicks on an image
- JPG Image extension not inserting into Custom table of wp
- wp_get_attachment_image_attributes not working
- Responsive images with srcset
- Using WP 4.9.6 and big trouble showing images
- How to link to img src using HTML email template in WordPress
- How to add an image below the header on homepage
- List sub pages with custom field content converting image ID to URL
- Does the title and description attribute of images ever get shown?
- Automatically set full size for all my images in all my post and page?
- If file exists with page slug name show image else nothing
- Issue uploading images
- How can I use images that are on the server locally?
- Image filter works on attachement pages but not posts. I can’t get the image ID
- Get images uploaded to this post in popup on editor screen
- Remove “align” attribute on images
- Paginate Gallery [closed]
- How do I add a nested conditional within an echo – to use a default image if there isn’t one in the post?
- WordPress: Preload next post images
- How do I change a Themes Header Image?
- Set add_image_size() greater than content width in media box
- Blurry Images WordPress 5.8.1
- Why is inline CSS added to images automatically? [closed]
- How to import external media items into wordpress media library (without using storage)
- How to return responsive images from a sanitize_callback?
- How to disable Right Click on a image? [closed]