5 votes

How to delete resized (cropped) image uploads and prevent future resizing?

A majority of the answers covered how to stop creating future default image sizes but this doesnt account for creating any custom sizes in your theme but here is another solution to add to functions....
user9447's user avatar
  • 1,772
5 votes

How to delete resized (cropped) image uploads and prevent future resizing?

You can easily delete files using "find" command on linux, just needed to do the same thing. You can run the following in bash console: cd /var/www/wordpress/wp-content/uploads find -type f -regex '.*...
mwdev's user avatar
  • 151
3 votes
Accepted

Why "Store uploads in this folder" option is not showing in Media Settings in WordPress

While the other answers cover part of the answer (old WP install), it is important to note: The options appear, if one of the options is set. They are stored via the keys upload_path and ...
kero's user avatar
  • 6,200
3 votes
Accepted

Can I stop wordpress generating media sizes

You can use remove_image_size() to remove previously registered image sizes. Ex : <?php remove_image_size('full-width-image-gallery'); ?> Note: Cannot be used on reserved image size names
Ranuka's user avatar
  • 1,784
2 votes

How to delete resized (cropped) image uploads and prevent future resizing?

If coding is not your strongest point you may want to look at a plugin solution. What I have in mind is a suggestion of a couple free plugins residing in the WordPress repository: Media Cleaner by ...
marikamitsos's user avatar
2 votes

How to delete resized (cropped) image uploads and prevent future resizing?

No idea, how to remove existing images. But you can stop generating image sizes for new images you are going to upload. If you like to write codes: Place this code snippet in your theme's functions....
mukto90's user avatar
  • 1,344
2 votes

How to delete resized (cropped) image uploads and prevent future resizing?

If you have SSH access then you can run the following commands to list and remove the resized images. Later you can rebuild them. List all resized images. # List all resized images. # Usage: lrimg ...
Ahmad Awais's user avatar
2 votes
Accepted

Unable to upload files greater than 1MB in size in Multisite network?

Upon debugging we found the wp_max_upload_size function was returning 1MB. The u_bytes and p_bytes were as expected and equal to 100MB as defined in our uploads.ini file but the application of ...
morpheus's user avatar
  • 155
2 votes
Accepted

WP is showing wrong image dimensions

How to get real image dimension of already uploaded images which dimensions are bigger than one now set in media settings? (Note: The italic and bold formatting above was added by me.) ...
Sally CJ's user avatar
  • 39.2k
1 vote

WP is showing wrong image dimensions

The width and height attributes on the img tag are not there to tell the browser how big the image file is (the intrinsic size), they're there to tell the browser how big the img tags DOM node is ...
Tom J Nowell's user avatar
  • 59.2k
1 vote

Thumbnail images chopped off but not cropped to exact dimensions

Thanks to Tom's comments I better understand the issue. There are a number of solutions: re-upload the image after applying new media settings Regenerate the thumbnails with the "Regenerate ...
Anthony's user avatar
  • 31
1 vote

Set different max upload size limits based on file type/extension

This should work: function max_video_size( $file ) { $size = $file['size']; $size = $size / 1024; $type = $file['type']; $is_image = strpos( $type, 'video' ) !== false; $limit = 750; $...
bulldog's user avatar
  • 283
1 vote

Why "Store uploads in this folder" option is not showing in Media Settings in WordPress

IIRC the option was softly deprecated sometime in the past, but if you have an old install it will still be indicated that it should be displayed and let the user edit it. The second site is probably ...
Mark Kaplun's user avatar
  • 23.4k
1 vote
Accepted

How to add values to media "whitelist_options" in wp-admin/options.php template?

firstly, don't edit core files of WordPress or your changes will be erased at the next update. in the file options.php look below this array declaration, you have this line : $whitelist_options = ...
mmm's user avatar
  • 3,694
1 vote

Add Small Image Size to Media Settings

Before modifying themes you should create a child theme of you theme https://codex.wordpress.org/Child_Themes you can then add one of the following options to you functions.php in the child theme ...
chop62's user avatar
  • 181
1 vote

Add Small Image Size to Media Settings

You can register a new image size by using add_image_size() add_image_size( string $name, int $width, int $height, bool|array $crop = false ) Parameters $name (string) (Required) Image size ...
Tunji's user avatar
  • 2,921
1 vote

How to delete resized (cropped) image uploads and prevent future resizing?

Here's a way you can do this programmatically (for the most part). 1: Set your media sizes (ex: thumbnail 300x300 and the rest 0x0 to keep WP from generating anything other than thumbnail.) 2: ...
bristweb's user avatar
  • 111
1 vote

How to delete resized (cropped) image uploads and prevent future resizing?

To remove all superfluous image files, we'll have to loop through all posts, find the attachments to those posts, establish which attached image sizes are no longer needed and remove those files. Here ...
cjbj's user avatar
  • 14.5k
1 vote

Why are image thumbnails cropped proportionally (not per dimensions)?

You might wanna try registering image sizes using after_setup_theme action hook. add_action('after_setup_theme', function() { add_image_size('main-thumbnail', 728, 410, true); }); Also, if you ...
Hristo Hristov's user avatar
1 vote

Why are image thumbnails cropped proportionally (not per dimensions)?

Use this plugin to regenerate the images and check the posts . also check with inspect element to see if the images has 728x410 at the end after the regenerating .https://wordpress.org/plugins/...
Soykot's user avatar
  • 11
1 vote
Accepted

Alter image meta fields in the Media Library

I don't know if this answer will be of much use given the age of this question now, but perhaps it will provide an answer sufficient that you can at least consider the question answered. I would point ...
t31os's user avatar
  • 18.7k

Only top scored, non community-wiki answers of a minimum length are eligible