Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#48488 new feature request

Easier disabling of PDF thumbnail creation

Reported by: pampfelimetten Owned by:
Priority: normal Milestone: Future Release
Component: Media Version: 4.7
Severity: normal Keywords: needs-patch 2nd-opinion
Cc: Focuses:

Description

Since #31050 wordpress automatically creates thumbnails for uploaded PDF Files by creating a second attachment post object with the extracted image.
While this may be useful for many use cases, in some like ours it is not.
Furthermore, it is possible to turn of thumbnail creation for audio and video by using the following simple code (

<?php
        remove_post_type_support( 'attachment:audio', 'thumbnail' );
        remove_post_type_support( 'attachment:video', 'thumbnail' );

).
It would be great to have a similar concept for pdf thumbnails in wp-admin/includes/image.php

Change History (1)

#1 @desrosj
7 years ago

  • Component GeneralMedia
  • Keywords needs-patch 2nd-opinion added
  • Milestone Awaiting ReviewFuture Release
  • Summary Filter for disabling PDF thumbnail creationEasier disabling of PDF thumbnail creation
  • Version 5.2.44.7

Thanks for this suggestion, @pampfelimetten!

I think this seems like a reasonable request. On first glance, it seems this could be accomplished with minimal effort, but more testing needs to be done to be sure.

To move forward, this would need a patch. I am also marking for a second opinion, in case there are any intricacies I am not seeing.

Note: See TracTickets for help on using tickets.