WordPress v4.4 introduced an additional image size named medium_large
which is is 768px wide by default, with no height limit. There is no UI for the medium_large
but the size can be changed by updating the options:
/**
* Updates the medium_large image size.
* It's only necessary to execute this code once.
* Ideally you'd want some kind of UI to allow the dimensions to be specified by the user.
*/
function wpse238808_update_image_size_medium_large() {
update_option( 'medium_large_size_w', 0 );
update_option( 'medium_large_size_h', 0 );
}
add_action( 'init', 'wpse238808_update_image_size_medium_large' );
Changing medium_large
‘s width and height to 0
like you’ve done with the other image sizes will prevent the additional images from being generated.
Related Posts:
- WordPress Media Uploader in page template (On Front-end)
- Convert base64 string to WordPress attachment uploads multiple images instead of a single one
- How wordpress handle upload images and how to use them in the code
- Can I get the ID of an inserted / linked image?
- In creating a theme, how can i allow a user to change an image outside post/page content?
- How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?
- wp.media issue with selected image
- Callback Function Not Firing On Selection In Media Uploader
- Can’t upload images on new theme
- Custom Theme functions.php – Using add_settings_field and input type=”file” to set custom logo
- WordPress Theme Preview Image
- The the_post_thumbnail without srcset?
- Get the first image from post content (eg.: hotlinked images)
- Upload images to remote server
- Reject upload of wrong-sized images using the Media Uploader
- Which filters or actions to use after a media upload and delete?
- How to modify an image block in Gutenberg WordPress 5?
- How can I set image sizes and still have responsive images using the srcset attribute?
- Add default Backgrounds
- Edit srcset and sizes attributes in Gutenberg image, cover and gallery – blocks
- Using Images in WordPress – Best Practices
- Media Upload Folder – how to manage
- Adding a custom image upload size and making it selected by default?
- Possible to “Attach” images to multiple posts without inserting or uploading twice?
- get_attached_media() returns empty array if media file already used by another post
- wp_get_attachment_image_attributes not working for me
- Settings in ‘Media > Settings’ is ignored when inserting images
- Theme logo metadata into template file
- Get featured image with custom size outside WordPress
- Disable image rename on upload
- How to fix WordPress images not showing up in local hosted XAMPP server?
- How can i identify media uploaded to my website that is not being used anywhere anymore?
- Control resizing of uploaded images
- Change Image Sizes for Mobile Theme
- HTTP Error when uploading images over specific dimensions
- Convert all uploaded PNG files to PNG-8 format
- Stop WordPress from showing images on non post pages
- image URL changed in wordpress
- How to make excerpt image be full size instead of thumbnail?
- How to add cropped custom header image?
- Is there a way to serve different resolution images to different devices?
- How can I scale down the width of images in bulk that are embedded in posts throughout the site?
- How to move an image in a plugin to the upload directory and make it as a media of wordpress?
- Add image URL automatically to custom field?
- Theming media inserts
- How can I remove image taxonomy pages from my theme and from Google?
- Dynamic Image Links Depending on Excerpt/’Single Post’ View
- Designing a custom archive.php inspired by the Autofocus theme
- ACF get_sub_field ALT TAG in the repeater doesn’t show
- Serving Images from subdomain in wordpress
- WordPress Animation Adjustments
- theme directory fallback image outputs url and not the image
- User uploads image as “Featured Image” but WordPress resizes it?
- Profile image does not upload
- WordPress append -1 to the image name
- Post Featured Image Custom Sizing?
- cant upload media/pictures to my wordpress site, cant upload anything to my database
- unable to write to the database while uploading images
- Upload error on localhost (at minimum, not yet tested online)
- Image cropping isn’t working correctly when using Offload Media
- unsharp thumbnails after uploading image
- Updated wordpress missing image upload area
- How to add an image to a theme page template in code?
- How to make the media library searchable by image title
- Set default “Link CSS Class” in add media admin editor
- Responsive Images with art direction
- WordPress uploads do not show up and I see the white screen of death in some cases
- Customizer Image-Picker Preview Not Working
- Uncaught Reference error in Retina.js
- How to load mediaelement.js in theme template?
- Images use & location, on new wordpress theme
- Zip all (original) images from media gallery
- image sizes – finding and removing
- Adding a Class to an Getting From Post Content
- Save the outputted image into the Media Library, with a different filename and extension
- Create image with imagepng() (fails at header)
- How would I get this to work – send to post from thick box
- WordPress Media URLs?
- Missing Images in Uploads Directory (Server Only)
- How do I keep images in posts below a certain size without editing the post?
- Broken Media Library
- Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix
- the_post_thumbnail fetches wrong image
- Custom image size doesn’t work
- Retina ready for uploaded images which are cropped
- Is it possible to convert various image types from remote URLs to WebP and then serve them immediately?
- Add rel to all images in a post
- Media Library is not loading on grid view in admin panel
- Blurry Images WordPress 5.8.1
- How can I add a single image from a gallery into the page header?
- Isotope overlapping .items because of featured images – HELP! [closed]
- How to automatically convert images to WebP on WordPress?
- I want to resize post featured image without cropping image. How?
- Uploading media to wordpress API with C# HttpClient
- How To Convert External Image URLs To Own Website’s Uploaded Images Automatically?
- How to upload multiple images to use as gallery in Kirki Framework
- How do I display a PDF thumbnail as a link to the PDF without uploading the image
- WP “optimizing” PNGs into thumbnails 5X larger than originals – FIX
- Featured Image add tab
- optimized PNGs 5X larger than originals