[wp-trac] [WordPress Trac] #45598: Prevent unnecessary whitespace around thumbnails when processing cropped PDFs
WordPress Trac
noreply at wordpress.org
Wed Dec 12 14:35:43 UTC 2018
#45598: Prevent unnecessary whitespace around thumbnails when processing cropped
PDFs
---------------------------------+-----------------------------
Reporter: michel.weimerskirch | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Keywords: has-patch
Focuses: |
---------------------------------+-----------------------------
When generating thumbnails from cropped PDF pages, Imagemagick uses the
uncropped area - resulting in unnecessary (and ugly) whitespace - unless
the option "use-cropbox" is set.
I attached a patch that solves the issue by setting a parameter in
ImageMagick. Not that this doesn't in any way affect uncropped PDFs.
I also attached a demo.pdf for you to reproduce the issue as well as two
thumbnails generated before and after the patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45598>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list