[wp-trac] [WordPress Trac] #64593: allow PDF preview generation without sizes

WordPress Trac noreply at wordpress.org
Wed Feb 4 05:08:26 UTC 2026


#64593: allow PDF preview generation without sizes
-----------------------------+-------------------------------------
 Reporter:  aryanrajseo      |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Post Thumbnails  |    Version:  6.9.1
 Severity:  normal           |   Keywords:  2nd-opinion needs-patch
  Focuses:  administration   |
-----------------------------+-------------------------------------
 Currently when we upload a pdf, it generates PDF preview with different
 thumbnail and sizes. However when we disable the additional media sizes to
 0 in settings > Media. The PDF previews no longer get generated.

 The idea is to remove dependency on media sizes to generate the pdf
 preview. In Library we already get full size for a pdf. file-name.pdf have
 file-name-pdf.jpg

 Steps:
 1. Upload a pdf in Media Library /wp-admin/upload.php
 Result - Pdf preview get generated with all enabled sizes.
 2. Disable cropping/additional thumbnail sizes in Settings > Media by
 setting the value 0x0.
 Result - PDF preview shows an icon /wp-includes/images/media/document.svg

 Expectation:
 Uploading pdf generate the default full size preview which we see in
 Library without even if other media sizes are disabled.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64593>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list