The reason is WordPress makes different sizes of images(i.e thumbnail,medium,large & full) when you upload the image.
If image is already uploaded and after that you declare the new size then that image size is not going to be there.
So you can solve this by two ways
- you need to regenerate the thumbnails using some plugin like
Regenerate Thumbnails
- Upload the image again
All the best
Related Posts:
- Responsive Images
- Define size for `get_post_gallery_images`, they seem to have been resized to 150×150
- Media gallery – inserting full size images without link
- Getting the image title/alt attribute from the gallery shortcode
- Can I attach an image to a different post?
- Add data attribute to a gallery link?
- Add Download Button in prettyPhoto Plugin
- Gallery Image Numbers?
- Display number of latest images from wordpress gallery in your homepage
- Display Gallery Images from Custom Post Type
- Ipad app: Need uploaded images to go into “Gallery” as well as “Media Library”
- Gallery – custom html for inserting images
- Display custom gallery in each wordpress post
- Add anchor tag on previous_image_link / next_image_link
- Prevent WordPress from adding image’ title automatically
- Overide Gallery Default Link to Settings
- Creating a photo gallery in WordPress [closed]
- How can I alter the [gallery] markup?
- get_post_gallery with Gutenberg
- Make a really simple gallery structure
- get images from post and make a zip
- Bulk edit wordpress images alt and title attributes
- Add option to “Gallery Settings” section
- Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)
- Having Problem On Getting WP Post Gallery Images URL
- Disable Linked Gallery Images If Mobile Browser
- Possible to add same caption to all photos in a gallery?
- How to Add a Custom Colum on Thickbox Media Gallery Tab?
- WordPress 3.5 Gallery Menu Order not set?
- How to link Gutenberg Gallery images To Media file automatically?
- How to get post attachments in gallery post format template
- How do I use two different images, one as a thumbnail and one as a linked image?
- get attributes/part of the gallery shortcode
- How can I show these pictures in two columns in my page?
- Gallery set to “Media file”, showing as attachment page
- Gallery Only Displaying One Thumbnail
- How do I create a full-bleed background image on text mouseover? [closed]
- change wordpress gallery shortcode to slider
- Image gallery plugin [closed]
- Override img class in gallery
- Fancybox not working. why?
- Pull Random Attachments With Pagination
- Howto accurately position images with maximum flexibility?
- Exclude images from “inserted into post” when trying to get attachments
- attachment.php code or tutorial
- How do I create a gallery page?
- Turn off image captions in gallery view?
- Unyson Framework doesn’t show gallery images
- How to get next image with this code from same post?
- Can I have the same image in multiple NextGen galleries? [closed]
- how to link post-thumbnail to original img in a lightbox?
- How do I export WordPress galleries?
- How to use the WP export and get images that are contained in a posts gallery
- Gallery with thumbnail carousel
- Gallery Shortcode Showing IDs
- Can’t get the columns of galleries when the user set the column number to 3 if there are 2 galleries?
- Media gallery images url instead of ID on WP API Response
- Get gallery images from page ID
- WordPress Gallery Thumbnail images look blurry
- Get all image IDs from the Media Library
- Checking for ‘gallery’ shortcode using strpos always returns false
- Allow users to contribute images to a post
- How to get images using taxonomy ( WP Media Folder)
- Possibilities for customising the standard wordpress gallery?
- zip download plugin works well in localhost but not on live site
- Workflow for users to download files?
- how to stop a gallery slideshow
- how automatically show the image title before the image caption/description in a wordpress gallery?
- change the h3 subtitles of the wordpress gallery shortcode
- Multiple WordPress Standard Galleries on a page stop images being displayed from other page galleries
- get_post_gallery with Gutenberg
- Getting gallery instead of single attachment
- Get caption from unattached images in gallery?
- Return only one post format in index.php [duplicate]
- Add title tag to image in wordpress gallery
- Media Categories as Classes on WordPress Gallery Shortcode
- Pulling in Column Count in Custom Gallery
- Post gallery loop with thumb and full size
- How do i replace the title attribute of img tag with the image caption
- How to add more fields to wordpress galleries?
- how to open image gallery in a post/page?
- How can I make gallery slideshow width fit to picture width?
- WP Gallery Image Page Issue When 2 galleries share one image
- Change the values of numberposts gallery
- Why do all Gallery functions return null for me?
- Thickbox not displaying just the image, instead showing full page in lightbox
- Multiple gallery thumnbnails on one page
- JavaScript Errors when Loading NextGEN Gallery [closed]
- Numberposts 1 not cooperating in 3.5
- Change the way wordpress outputs images or image galleries
- Generated WYSIWYG gallery with individual gallery_page templates
- How do I set the sizes of my thumbnails when inserting a [gallery]?
- Display X images from a gallery in the sidebar
- How can I add hover text to images of a basic gallery on wordpress elementor?
- Use bootstrap for wordpress gallery? [closed]
- Click thumbnail, change main image – NextGen or somethign else?
- Automatically adding blog images to a portfolio/gallery
- Image Attachments Query Not Working If Post Is Loaded Via Ajax
- how to add this type of gallary photo number counter?
- How to move all images in a post to a single gallery for a bunch of posts?