Use the Filter Hook intermediate_image_sizes_advanced
for control the resize function for different sizes. This hook get a array of different sizes and can control your resize with your requirements. Add your logic inside a plugin and remove sizes via this hook.
// the hook in core
$sizes = apply_filters( 'intermediate_image_sizes_advanced', $sizes );
A small example to remove the resize for medium
size.
add_filter( 'intermediate_image_sizes_advanced', 'fb_filter_image_sizes');
function fb_filter_image_sizes( $sizes) {
unset( $sizes['thumbnail']);
return $sizes;
}
Related Posts:
- How to generate thumbnails when needed only?
- No Thumbnails Generated
- How to Require a Minimum Image Dimension for Uploading?
- How does WP media uploader create the 3 different sized images, and how can I duplicate it
- Reject upload of wrong-sized images using the Media Uploader
- Create image formats with different qualities when uploading
- Which filters or actions to use after a media upload and delete?
- PNG with transparent background turns black when uploaded and resized
- Settings in ‘Media > Settings’ is ignored when inserting images
- There’s a way to scale media (images) at 50%?
- How to prevent upload of a multiple sizes of images
- How can I prevent uploading bmp image?
- Impose a Maximum Limit on Image height and width upload size
- Force wordpress to see uploads folder media
- Convert uploaded PNG to JPEG automatically
- add_image_size creating lots of images (of various sizes)
- resize images not crop
- Add suffix to filename of uploaded images
- How to link to the image editor’s Edit Image function?
- Regenerate thumbnails after upload
- Front-end Image Upload with Preview – Is this Possible in WP?
- WordPress won’t generate image sizes for certain images
- Thumbnails produce unwanted gray pixels on white background [closed]
- Site icons with alpha channel for self-hosted WordPress blog network
- How can I receive the image id using the media box?
- Can I stop wordpress generating media sizes
- add_image_size() and uploading the exact size leaves 1×1 image in uploads
- WordPress Fancybox Resize Large Image
- Error uploading images (but the images are at the server!)
- How to generate thumbnails when needed only?
- WordPress Media Library showing wrong preview size?
- add_image_size adds size, but doesn’t upload if source resolution is same as resize resolution
- Original image not saving?
- Process uploads with phpThumb before generating thumbnails
- Resize existing library images
- Large image upload size (using timthumb.php
- Image resizing – TimThumb vs convert on upload?
- WordPress Bug on IIS ? Problem when uploading image on IIS 7
- When does WP resize an image file
- Issue with images which have no sizes available
- How to resize attachement
- Best way to receive special images in posts
- Resize uploaded original images to a minimum automatically
- Dynamically determine the width and height of a image file to be cropped & uploaded AFTER form submission given fixed aspect ratio
- Control resizing of uploaded images
- Images uploaded via Gutenberg image block are cropped
- Set default “Link CSS Class” in add media admin editor
- Images not aligning correctly
- Redimension thumbnail crop without creating new images
- get the post thumbnail returns the full size
- WordPress Image Resize fails without Error Message
- How to force attachment size for every post
- what happens to existing media files when I switch to year/month directory structure format?
- How can I batch delete all unattached images with WP-CLI or other automated process?
- “Add Media” only shows “Full Size” under Attachment Display Settings
- Differentiate Featured Image from Post Images upon Upload
- What might cause a POST to wp-admin/async-upload.php to return JSON >and< HTML?
- Saving the pre-sanitized filename of an attachment as the Title or Caption
- Alter media caption/description conflict in WordPress?
- Debugging upload problem: What part of WP does actual image-resizing?
- How wordpress handle upload images and how to use them in the code
- Rename attachments during upload
- Generated Images sizes do not match Media Settings Image Size
- Where is Featured Image code stored in WP?
- Insert into Post button is missing for certain images
- How to manage a big collection of files with wordpress?
- How to order images in a post in WordPress 3.3?
- Allow only attachment uploaded to current post
- WordPress automatically downscaled images larger that original
- upload_mimes not accepting CSV
- Is it safe to allow non-admin users access to media uploader
- Upload multiple images and insert them into custom html code
- WordPress function when file is uploaded, deleted or edited
- Change image name during uploading sequentially
- How to limit the number of images displayed in the media window?
- WordPress Creates Unused (Unregistered) Image Sizes
- How does WordPress decides how many sizes of an image to create?
- Big file upload give HTTP error
- Organizing uploaded Media in permalink-based folder structure?
- Right way to download file from source to destination
- Disable image rename on upload
- HTTP error when uploading an image
- wordpress upload permission on nginx & ubuntu
- Upload images – Theme options
- Blog suddenly can’t display .jpg
- 413 Request Entity Too Large nginx/1.18.0 (Ubuntu)
- Recreate the upload folder from a website without having access to the backend/cpanel/filezilla directly from the website
- Modify Maximum upload file size text in WordPress Media
- Replicate Media Galley Edit view in Add Media View
- File upload in WordPress
- Change wordpress default upload path to another domain
- 45mb File Exceeds the Maximum Execution Time
- How to share media between independent blogs?
- WP Capabilities to Add Media, Use Media, But Not Edit Them
- Why isn’t my enqueuing working properly?
- What is the best way to upload a temporary & sensitive file and then delete it when done
- Assign one featured image to multiple posts?
- Do I need FTP set up to upload files to wordpress server
- Media Gallery doesn’t show (using WP-Read Only)
- Update media item using wordpress rest api in python