Intermediate image sizes are discrete, not variable. When you define an image size, with specific dimensions (whether hard-cropped or box-resized), WordPress will create a discrete image, with the specified dimensions.
Otherwise, if width could be defined dynamically, WordPress would have to create a prohibitively large number of images, just to account for responsiveness.
To account for responsive design, you’ll have to use CSS. The easiest way to do so is using a rule similar to the following:
#content img {
max-width: 100%;
height: auto;
}
That way, if the #content div is resized, your post images will be resized along with it, while maintaining their aspect ratio.
Related Posts:
- How can I make add_image_size() crop from the top?
- Converting Attachment to Images?
- Add padding while generating thumbnail
- Redirect to another page using contact form 7? [closed]
- Plugin to hide image in excerpt
- Add “Featured Image” box in my plugin post page
- Scrape a webpage for image and add it to post
- Regenerate Thumbnails Plugin successfully updated my thumbnails but image src won’t change to new image size?
- Add_image_size not generating correct size
- How to hide featured images of all posts falling under the same category in wordpress?
- Upload Image with a file URL and show dynamically on Frontend
- insert og image link in wordpress post
- Display Multiple Photos as Featured Image when mouse moves on to it post
- WordPress create thumbnails on demand
- Does WordPress have a way of changing the ‘Natural’ size of uploaded images?
- How to force regenerate thumbnails in WordPress posts?
- Determine if get_the_image has image on Get the image Plugin
- Retrieve post thumbnails
- Prevent publishing the post before setting a featured image?
- Resizing all images
- Automatically Import Image into Posts from URLs on the Web?
- How can I attach images to a post from the media library?
- Rename existing old uploaded images containing accented French characters (not during upload)
- Upload images from custom plugin using the media modal
- Disabling post images for not logged in users
- How to upload thousands of images?
- There’s some way to add a wrapper around posted images?
- How to show category images (from plugin) on a regular page (page-example.php)?
- Saving/Writing/Adding file to upload folder
- How to limit 1 image per post on homepage only?
- Flickr plugin that will display photos from multiple group pools? [closed]
- Getting media library popup in custom plugin admin page
- How to change ID of an attachment in wp_posts and its related tables correctly?
- bulk change of image setting “link to” to “link to: image url “
- Regenerate images with automatic ALT and TITLE attributes
- ReOrder Post Within Categories plugin with featured image
- Images not showing after changing wp-content folder name
- Preview featured image using frontend post plugin
- How to Delete all Unused photos Function
- How to resize images due to container width automatically server side/without CSS
- How to create a managed image repository in wordpress
- wp_generate_attachment_metadata is creating an empty array
- Contact Form 7 Get Image Function [closed]
- How generate 200% image size and save with suffix @2x
- Load external images via proxy
- Retrieving Meta from Image Attachment
- How to export all content with feature images?
- Implementing an image hosting website using WordPress? [closed]
- Is there a best practice remediation for PhpStorm’s warning that void function the_post_thumbnail is used?
- Woocommerce showing images blurry in description page
- Cropping images from top center using Jetpack Photon
- Photo Gallery Plugin and Touch Devices
- How to Resize the Custom Post Images?
- How to limit image size for the entire website ? But without editing the post (css/plugin?!)
- Images under 1MB are not being compressed
- Couple of beginner’s questions [closed]
- Blurry images when loading the page first time
- Search by Attachment ID
- Overwrite add_image_size defined by theme
- Some images on WordPress site are suddenly gone
- Simple sildeshow/image-upload plugin?
- Offer Download Links for Product Images
- how to remove share button from image overlay
- Allow webp use on website but disallow webp as featured image during post creation
- Optimal image size for wordpress?
- Copy/paste local images not working in WordPress
- Is classical wordpress eidtor a good option for me to include a large table with a large number of images on my webpage?
- Optimise wordpress database using SQL after deleting registered images from Media Folder
- Displaying all the images from all of my articles
- Product Page loads terribly slow when product gallery images are added
- Import 2000 posts from one website to another
- WordPress how do I change images used in plugins?
- Why is my site still showing insecure icon even if I have SSL certificate?
- Help finding a plugin – masonry type post grid
- How to wrap image tag into div for post only?
- Insert Sponsor logo in custom own theme
- Optimize and delete images in WordPress
- Upload image to wordpress using ionic/cordova with WP REST API V2
- Adding featured image to post display widget
- Is there any hook to change media html in post? [duplicate]
- Add image to post
- How to add featured image on front end form?
- resizes images on the fly
- adding image in the header of my dev widget
- How to select featured images for 1500 posts?
- How to show post attachment image
- Advanced Custom Fields (ACF) Plugin – Random Image in Sidebar
- Display alt text as tool tip on page
- Adding Relevant Post Images
- Images not showing and plugins not installing on wordpress server move
- Looking for a related post plugin which slides-in like the one at inc.com does [closed]
- Image Layout in Posts
- Is there a WordPress Plugin like Imsanity that keeps high resolution originals? [closed]
- Display Video as Post Thumbnail
- Images get uploaded itself from the computer
- how to embed a crop feature for cropping images uploaded by the user
- Multiple Post Thumbnails Not Returning URL for Background Image
- Achieve the following layout
- How To Convert External Image URLs To Own Website’s Uploaded Images Automatically?
- How do i display the number of images on the “post screen”