[wp-trac] [WordPress Trac] #64593: allow PDF preview generation without sizes
WordPress Trac
noreply at wordpress.org
Wed Feb 4 08:58:14 UTC 2026
#64593: allow PDF preview generation without sizes
-------------------------------------+------------------------------
Reporter: aryanrajseo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 6.9.1
Severity: normal | Resolution:
Keywords: 2nd-opinion needs-patch | Focuses: administration
-------------------------------------+------------------------------
Comment (by Presskopp):
I agree that the missing PDF previews are a real issue and should be
addressed. However, this ticket also highlights a more general question
about how WordPress decides whether media previews and other derived files
should be created.
At the moment, setting image sizes to 0 is commonly used to effectively
turn off thumbnail generation. This behavior is widely relied upon, but it
is not clearly defined and ends up influencing things that users would not
necessarily expect, such as PDF previews.
From a user and product perspective, image dimensions describe the size of
images, not whether previews or other media representations should exist
at all. Still, changing the behavior of 0 is not an option, as many sites
depend on it today.
Instead of fixing PDF previews in isolation, it may be worth discussing a
more general and explicit way to decide when derived media files should be
created, while keeping the current behavior for existing sites fully
intact.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64593#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list