mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-13 15:20:06 +01:00
Media: fix full size image generation for PNG uploads.
Remove a limitation that prevented PNG uploads from generating the full sized image. Fixes a bug where using the image_editor_output_format filter would not generate full sized images as expected. The removed code was present to prevent overly large PNG image output, however this issue was resolved separately in #36477. Props: adamsilverstein, pixlpirate, flixos90, mukesh27, azaozz. Fixes #62900. Built from https://develop.svn.wordpress.org/trunk@59844 git-svn-id: http://core.svn.wordpress.org/trunk@59186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4d8b360601
commit
da8f997ab6
@ -261,9 +261,6 @@ function wp_create_image_subsizes( $file, $attachment_id ) {
|
|||||||
$image_meta['image_meta'] = $exif_meta;
|
$image_meta['image_meta'] = $exif_meta;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do not scale (large) PNG images. May result in sub-sizes that have greater file size than the original. See #48736.
|
|
||||||
if ( 'image/png' !== $imagesize['mime'] ) {
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filters the "BIG image" threshold value.
|
* Filters the "BIG image" threshold value.
|
||||||
*
|
*
|
||||||
@ -399,7 +396,6 @@ function wp_create_image_subsizes( $file, $attachment_id ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initial save of the new metadata.
|
* Initial save of the new metadata.
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.8-alpha-59843';
|
$wp_version = '6.8-alpha-59844';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user