Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#48278 closed defect (bug) (worksforme)

image is automatically resized even if it is not set

Reported by: gevv's profile gevv Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:

Description

Hi,

don't want to resize images.

my media setting;

Thumbnail size Width 0
Thumbnail size Height 0

Medium size Width 0
Medium size Height 0

Large size Max width 0
Large size Max height 0

My theme not use post thumbnail support


Add new post, upload image auto resize image 768x419

Consists of 2 files

sample.jpg
sample-768x419.jpg

Change History (4)

#1 @sumitsingh
5 years ago

Hi Gevv,

I think created an issue with some plugin.

So please add below function in your active theme.

function remove_image_sizes( $sizes, $metadata ) {
    return [];
}
add_filter( 'intermediate_image_sizes_advanced', 'remove_image_sizes', 100, 2 );

Please let us know if this helps.

Have a good day in the meantime.

Thanks

#2 @gevv
5 years ago

Hi,

Thanks tried the code solved the problem.

Plugins I use; wpsuper cache, all in seo, disable gutenberg

#3 @knutsp
5 years ago

  • Resolution set to worksforme
  • Status changed from new to closed
  • Version 5.2.3 deleted

#4 @SergeyBiryukov
5 years ago

  • Milestone Awaiting Review deleted

Thanks for the follow-up!

Last edited 5 years ago by SergeyBiryukov (previous) (diff)
Note: See TracTickets for help on using tickets.