Skip to content

PDF Image Derivatives could be more efficient #2165

@dannylamb

Description

@dannylamb

When an image derivative is made for a PDF, the entire PDF is used to generate the image. Every page is taken and then flattened into one image, so it takes a while and the resulting image is oversized. With a small chunk of code, you can say "just use the first page", which yields the exact same derivative, just smaller and faster.

What steps does it take to reproduce the issue?
Upload a 50 MB+ PDF and you'll get slow and oversized derivatives

Which version of Islandora are you using?
2+

Any related open or closed issues to this bug report?
I've already integrated this with ISLE to an extent. If this gets merged I can drop a branch i've got over on isle-buildkit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugidentifies a problem in the software with clear steps to reproduce

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions