• Resolved dpearl35

    (@dpearl35)


    I’m having an issue with the current Media upload tool creating images from my uploads that are the incorrect aspect ratio. These poorly designed crops are preventing me from adding new images on my site properly!

    How do I disable? I’ve been sure to have the image at a max resolution of 1024 pixels to avoid this, but it still makes numerous proxies. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Using code

    Add remove_image_size() function into your functions.php

    remove_image_size(‘large’);
    remove_image_size(‘medium’);
    remove_image_size(‘thumbnail’);

    It will disable the resizing the images.

    If you do this, keep in mind that the big image is always loaded. The reason for the resizing is that WP uses under certain cirmumstances the srcset attribute, which will load the best size depending on the device resolution.

    • This reply was modified 7 years, 10 months ago by strub.
    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If things were poorly cropped it may be an issue with the theme or plugin that is showing the image. It’s worth exploring before disabling responsive images site-wide.

    Thread Starter dpearl35

    (@dpearl35)

    @anevins, YES, thank you for the insight. It turns out the theme that I’m using is forcing WP to make the bad crops. I reactivated my old theme to reupload the image and that fixed it. Kind of a pain, but at least it works.

    Thanks everyone for your thoughtful considerations.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable Image Resize’ is closed to new replies.