No, images are global and you might change which content they are associated with at which point you will need sizes that do not exist.
You can generate images “on the fly” but this may slow down page generation (depending on the way generated image information is cached) and might break code which “pushes” into CDN or cloud storage like S3.
WordPress themes and plugins seem to generate way too many images, but since most of the images generated that way are relatively small, and storage is cheap, it doesn’t seem to be sopmething that you should worry about enough to write code to optimize it.
Related Posts:
- Way to force media uploader use custom image size
- Retrieve Image from Media Library by it’s category
- Redirect to another page using contact form 7? [closed]
- Image Upload Custom Form Field for Category and Custom Taxonomy
- Media Categories as Classes on WordPress Gallery Shortcode
- Upload images to remote server
- How to delete resized (cropped) image uploads and prevent future resizing?
- Uploaded images don’t show in Media Library if there are special characters in IPTC Keywords
- Which filters or actions to use after a media upload and delete?
- Woocommerce get category image full size
- Filter by post category in Media Library
- How to register images uploaded via FTP in media library?
- add_image_size creating lots of images (of various sizes)
- categories on attachment page
- WordPress function: limit size, only jpg, jpeg, limit of uploaded files per account
- Uploading images to Media Library fails with Memory Exhausted
- Edit image preview is not displayed
- Uploading images: ‘ø’ get replaced with ‘ø’
- Adding a querystring to an image URL when clicking ‘insert into post’?
- Media library not loading after switching the main site of multisite
- WordPress won’t generate image sizes for certain images
- Different upload path per file type
- Site icons with alpha channel for self-hosted WordPress blog network
- Can I stop wordpress generating media sizes
- Taxonomies for WordPress Media Library [duplicate]
- HTTP Error when uploading files above 7mb unless using GD Image Editor
- Display the featured image from the last post
- wordpress media library shows empty images
- How to order images in a post in WordPress 3.3?
- Extract image url associated to a category
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- Show category images on single product page and product overview page
- Image Uploader API
- Link Attachment Image to Category
- Is it possible to split Default WP Media directory to multiple Folder/Subdomain?
- Change thumbnail image depending product category
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- category image taxonomy
- Images uploaded to the media library has strange colors. However, in the edit screen the color is ok
- Change media URL (images)
- WordPress Media Library showing wrong preview size?
- categories on attachment page
- Upload multiple images and insert them into custom html code
- get_post_meta not working on category.php
- Uploaded images not displaying in network site
- Unable to upload images to the Media Library. Getting this erron on the console wp-admin/async-upload.php 403 (Forbidden)
- Original image not saving?
- Resize existing library images
- Random Featured Image Based on Category
- How to limit the number of images displayed in the media window?
- Images are not showing up in “Uploaded to this post”
- Create a post from every image in my media gallery
- Get images attached to a specific page
- Issue with images which have no sizes available
- Images don’t update after being edited
- Is there a way in WordPress to convert images to WebP without a plugin?
- Category images are not displaying in WordPress
- Change Image folder Locations
- Some Images Disappeared from Media Library?
- How do you use the featured image of the most recent post in a category as the background image
- Need to echo category id in multi-dimensional array
- How to link a PDF file to a category URL
- How to change the value “uploaded to” in the media library (WordPress 4.0)
- Category view with contents of [gallery]s shown
- How to add image for all posts associated to specified category?
- How to display WooCommerce category image in my category page banner as a background?
- WordPress append -1 to the image name
- Is it possible to limit number of files a non-admin user can upload via the WordPress media library?
- How to make product image inherit from category image
- How to display categories image in loop homepage WordPress
- Could creation of various image sizes cause slow form submission response?
- unsharp thumbnails after uploading image
- Change background image page header overlay for each category
- Images uploaded via Gutenberg image block are cropped
- How to handle a lot of media files in the uploads folder? (+10.000)
- Icon images across multiple categories
- Media Library Category Exclude Tree
- Media Library Categories
- Broken images in media library
- Categories Help and video uploads
- Images are not getting uploaded
- Redimension thumbnail crop without creating new images
- How to relocate images
- In a shared site, how to get products in a category from one site to another?
- Display one post on category.php: Wrong featured image
- Categories in media library
- Assign one featured image to multiple posts?
- Missing Images in Uploads Directory (Server Only)
- Media Library filter returns undefined function get_current_screen
- Broken Media Library
- Category page with gallery for each post
- Transfered live site to new server and images are not showing
- Limit files uploaded per folder
- Image menu showing categories in page
- Featured image for links and categories
- My image rotate 90 degree
- How do I change a Themes Header Image?
- Media Library is not loading on grid view in admin panel
- Get all first images of posts in same category