[wp-trac] [WordPress Trac] #38594: pdf preview sizes not filterable

WordPress Trac noreply at wordpress.org
Mon Oct 31 17:43:13 UTC 2016


#38594: pdf preview sizes not filterable
-------------------------+-----------------------------
 Reporter:  nosilver4u   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Media        |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 When checking the new PDF previews in 4.7, and trying to ensure that EWWW
 Image Optimizer is compatible with the changes, I discovered that there
 does not seem to be a way to modify the sizes that are generated.

 With image uploads, the intermediate_image_sizes_advanced filter is
 available to modify the sizes being generated (or take other action, and
 EWWW does both).

 From what I can see, the thumb generation section for PDF files in wp-
 admin/includes/image.php has absolutely no actions/filters for developers
 to modify the default behavior. I don't know if adding the
 intermediate_image_sizes_advanced filter is the correct way to do it, or
 if a new filter is in order here, but either would be greatly appreciated!

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


More information about the wp-trac mailing list