[wp-trac] [WordPress Trac] #38832: WP_Image_Editor can no longer edit PDF pages other than the first one
WordPress Trac
noreply at wordpress.org
Thu Nov 17 23:02:32 UTC 2016
#38832: WP_Image_Editor can no longer edit PDF pages other than the first one
-----------------------------------+---------------------------
Reporter: mikeschroder | Owner: mikeschroder
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.7
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+---------------------------
Comment (by joemcgill):
[attachment:38832.2.diff] Takes a bit of a different approach here,
reverting some of the PDF specific code in
`WP_Image_Editor_Imagick::load()` in favor of an approach that would allow
someone to set resolution and page ranges on the editor instance before
running the `load()` method. The changes to
`wp_generate_attachment_metadata()` for generating thumbnails for PDFs
shows how this could be used.
This was a pretty quick proof of concept, so testing and feedback would be
appreciated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38832#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list