Make WordPress Core

Opened 10 months ago

#58647 new defect (bug)

wp_generate_attachment_metadata generates scaled images

Reported by: picard102's profile picard102 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 6.2.2
Component: Media Keywords:
Focuses: Cc:

Description

When using wp_generate_attachment_metadata() it seems to ignore the filter to turn off "big_image_size_threshold".

add_filter( 'big_image_size_threshold', 'return_false' );

$generateThumbs = wp_generate_attachment_metadata( $attachmentId, $file );

This results in a scaled version of the media being created and _wp_attached_file meta being replaced with the scaled versions path.

Change History (0)

Note: See TracTickets for help on using tickets.