If you want to get those set in the admin panel, use the function get_option
. The keys are
get_option('thumbnail_size_w');
get_option('thumbnail_size_h');
get_option('medium_size_w');
get_option('medium_size_h');
get_option('large_size_w');
get_option('large_size_h');
If you want them for some specific attachment, use wp_get_attachment_image_src
Related Posts:
- Automatically replace original uploaded image with large image size
- How to scale up featured post thumbnail?
- Custom image size / thumbnail – Crop to aspect ratio even when source image is smaller than set dimensions
- wp_get_attachment_image_src and server path
- get_post_gallery_images returns thumbs . I want full size
- How to resize images in wordpress without adding any compression or changing the color profile of the images, possible?
- Why is wp_get_attachment_image not including “full” size in srcset?
- Get img alt tag from a Image that has been uploaded through the Customizer
- Get Attachment ID from URL [duplicate]
- How to set twenty fourteen header image at 100% width?
- WordPress speed slow after .5 million single image post via wp-cli
- Can’t Display Featured Image in RSS Feed
- Filter to modify post_title after image upload?
- Generate image size, based on the image-orientation
- Import Images from one self-hosted WordPress install to another
- How to get relative URL of medium sized featured image?
- How do i reference the theme path in pages for images?
- How to Add extra option to Image Block Settings?
- Upload thousands of images to WordPress without plugin?
- Using srcsets to load different images based on browser widths
- Multiple entries for one object with different cover images
- How to exclude an image size from the WordPress srcset
- Automatically replace original uploaded image with large image size
- Problem with loading images from child theme CSS file with relevant path
- Generating different dimension images while uploading image file from custom plugin page
- is it possible to crop cover images in buddypress?
- Any specific reason why images do not show on site?
- How to intigrate multiple image uploader in a custom post type
- Disallow img tag in comments?
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- Stripping the_content() from images then displaying them seperately
- Image upload appearing as broken images following server move
- How to prevent WordPress scaling large images down
- How to stop thumbnail generation from some images and different size thumbnail generate
- wordpress (woocommerce) add image to media library programmatically python
- How can I filter image HTML to add schema.org attributes?
- How to get file URL from media library
- wp_customize_image_control deprecated add_tab alternative
- How to translate get_intermediate_image_sizes?
- Change media URL (images)
- Problem with images when no dimension in the URL [closed]
- some images not appearing on the website after migration [closed]
- Why does WordPress convert my jpg’s to png?
- How do I get my main image to stretch the full length of the screen?
- How to make my site use HTTPS for images or how to insert images as relative paths?
- HowTo: develop WP template with dynamic background image
- How can I use wp_save_image_editor_file filter?
- Featured Image or Post Thumbnail Displaying on index.php?
- How to set featured image from external url programmatically
- What did I do WRONG?
- Add retina “2x” in attribute “srcset”
- Capitilize Alt/Title Tag in Image HTML, Reorder HTML Output
- Change logo image condition based on url
- How to display a sized image from Simple Fields repeatable field
- Hiding Media Source Links
- How to create a title images for different posts?
- Random Characters in the end of every image url in post
- resize and crop thumbnail photos
- Broken thumbnails (sometimes) with TimThumb
- Can i have 2 separate Galleries on 2 separate pages each go to a DIFFERENT Attachment.php file?
- Why is my table background image not showing in wordpress?
- Is it possible to save crop to a different size of the image when in image editor?
- How do you change the fetched image of a PDF uploaded into WordPress Media Library?
- Apply manual image cropping not to thumbnail but medium_large size
- Hide or mask the url to an image
- Trying to change the URL of a product image once I upload it, but there seems to be no way to access the URL
- Trouble with Uploading and Displaying Images
- WordPress Multisite: Images moved to /sites/1?
- How can I insert and display copyright owner field on featured-images, pictures and galleries in articles?
- Site only working in browser where I created it
- Image alt attribute
- wp_download_url() for dynamically generated image
- Images missing from Blog post page
- Page size too big due to images
- How to change img src in home-made theme, using WordPress` live customizer?
- Full size image from srcset ALWAYS used on mobile DESPITE setting size of image in editor
- Run function before uploaded image is saved
- Are WP images responsive by default?
- How to get attachements URL from author meta and display them?
- wordpress images not showing properly
- How can I set different banner images using background cover at different breakpoints?
- variable crop option with add_image_size()
- Replacing an Image gallery
- Images with excerpt function
- How do I get resized thumbnails?
- How do I embed an image at actual size?
- Display ajax preloader for large images within posts
- Why is WordPress loading a different sized post thumbnail?
- Uploading Full Size Image vs Resizing Before Upload
- Storing images on a local site
- Adding Multiple Images to Sidebar Through Dashboard
- Tried everything but Facebook share button won’t load the post thumbnail
- Set image dimension for WP_Customize_Image_Control images
- How to hide image alt text/caption in Visual Composer?
- Why some images are not allowed to be edited only for thumbnails?
- WordPress Theme: replace logo image with title site if file doesn´t exist on server
- WordPress update leads to 404 error on admin page and signup. CSS mishap with all plugin related functions
- How to get dimension of Logo and Crest
- WordPress Missing Images
- Display first image’s caption