You shouldn’t.
srcset is used for when you want to optimise the quality for different devices by serving different sizes of the same image. If you want to serve different crops, you should be using the picture element instead.
For example, if the intention of your image sizes is to serve a ‘small’ version to ‘mobile’ devices, using srcset won’t achieve that. For example, an iPhone 6, despite only being 414px wide, would serve your large 992×500 image due to being 3x retina quality.
Related Posts:
- How do I disable responsive images in WP 4.4?
- WP 4.4. responsive images browser choosing the “wrong” one
- How to insert pictures without hard coded dimensions?
- Making WordPress Gallery (.gallery-item) Responsive?
- How can I serve different images depending on screen size with wordpress
- How to Make WordPress Default gallery responsive on mobile?
- Responsive background images added inline
- Responsive Images – Add srcset attributes to custom Images Function
- Get a list of all image sizes that match aspect ratio of original one
- How to exclude an image size from the WordPress srcset
- Responsive Images Resizing Images
- Featured image (responsive) above content is too small after update to WordPress 4.4
- How to display a different image size for mobile
- WP Responsive images – upload custom image sizes
- Fuzzy Images in WordPress 4.4
- Removing height and width from images with a caption
- How to create ‘Local’ filters for WordPress srcset sizes in template parts?
- Multiple amp-image overlays. How to properly do this in wordpress?
- Fallback for missing srcset images
- max_srcset_image_width doesn’t work as intended
- Using SRCSET with Images and Featured Images
- Understanding WordPress image sizes and responsive images
- Custom responsive ‘featured image’ sizes
- One of my image sizes isn’t showing up in srcset
- How to stop WordPress from completely overriding my tags in my templates?
- Adding srcset to an image in ajax
- the_content not showing responsive image attributes srcset or sizes
- Serve different images per screen size and cache possible?
- Disable Media File Image Link On Mobile Devices
- All 3?: Responsive resizing of images + image width of actual image for small images + max-width for all larger images
- Why does WordPress list all image sizes in srcset even if they’re larger?
- Responsive header image
- What’s are some best practices for responsive images (e.g. for section headers)?
- WordPress Responsive Image ( srcset ) not work properly
- Responsive Images – Defining
- Decide how Hero image appears on mobile
- Responsive Featured Images Not Working
- Responsive images with srcset
- Getting extra image links in code with wp_get_attachment_image
- built-in responsive images in content – do I need to add anything to functions.php?
- Responsive images in Bootstrap 4 slider
- WordPress not choosing the right image from srcset
- Responsive Images in WordPress
- Is there a good way to use CMS images with CSS
- Remove one srcset entry from wp_get_attachment_image
- Generate / attach Image srcsets from ACF Image Field
- Remove srcset thumbnail attribute for products in the WooCommerce shopping cart
- wp_get_attachment_image with custom size not rendering possible 2x srcset image
- medium_large image size not displaying properly on the frontend?
- Cropped featured image replaces original image in gallery
- Displaying images with relative paths in the editor
- Prevent image upload unless exact size
- Fixing external image urls
- Associate an existing image with a post
- Need help building a filter to edit the output of “image_send_to_editor”
- Can images be automatically compressed?
- Adding custom image size to the media image editor
- How to set the width and height rule for featured image
- hardcrop images in gutenberg “latest posts” block
- Get uploaded image path in wordpress by filename
- add the post as canonical for attachment page wordpress
- How to get image ID to use inside wp_read_image_metadata()?
- Large size image breaks template layout
- Replace original image, WP image editor
- Disable all resizing and compression
- wp_get_attachment_image_src() returning incorrect width and height [duplicate]
- Blank upload.php page
- Bulk Upload Image Alt Text
- Call to undefined function wp_generate_attachment_metadata()
- the_post_thumbnail(‘medium’) setting some images width=1 height=1
- NextGEN Conditional Statement [closed]
- All Images not calling alt text
- WordPress Featured Image meta box not showing
- Can we use featured image as third party website image URL
- How to remove the images from “Uploaded to this post”?
- Place image caption outside of figure tag (Gutenburg Image Markup)
- Featured image not shown in header
- How to display the Media Library Items Upload date
- Auto Generate Thumbnail
- Images not loading on webpage, and links to other media give 404 Not Found
- Loading and Referencing Images
- An error has occurred during the upload process in wordpress version 5.3.2
- ALT attribute in menu images
- How to create interactive charts on WordPress?
- Using ACF Pro plugin – How to get alt tags using repeater with Image ID? [duplicate]
- How to compress thumbnails instead of cropping
- Using custom field to change alt text for a featured image
- Pasted image and text in the editor doesn’t work
- Query Image File of a Different Size
- Get custom size of thumbnails
- How do you cite the images on your blog? [closed]
- Thumb doubles the image file size
- Cannot use existing image as a featured image since 3.8.1 update
- Utilise WP_Customize_Image_Control to only show image picker
- Post-upgrade problems: Image URL in DB, but not showing
- greater flexibility in targeting images attached to page
- Featured Image metabox lost
- Random images from uploads folder and subfolder
- Is there a way to upscale a media library original image to the nearest whole pixel in WordPress?
- Changing Theme produced a problem on some pages