WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#39263 closed defect (bug) (duplicate)

PDF-Preview works only with standard image-sizes

Reported by: arkonisus Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7
Component: Media Keywords:
Focuses: Cc:

Description

The output of a preview of a pdf-attachment via wp_get_attachment_image() only works correctly if you use one of the pre-defined image sizes e.g. 'thumbnail'. Any custom size will be diplayed correctly but the src of the image just points to the original (full) with the result of a huge page load because no custom sized image was rendered.

Change History (1)

#1 @joemcgill
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @arkonisus. Thanks for the report.

We're currently tracking this issue in #39231.

Note: See TracTickets for help on using tickets.