The goal is to create a thumbnail for uploaded pdf files, which can be visible in the library and in certain representations instead of the filetype icon.

Comments

nagy.balint’s picture

StatusFileSize
new1.51 KB

Here is the first patch to do that with imagick.

Currently when the atom is fetched it will create the thumbnail with imagick if the thumbnail field is empty.

With this, it will always work, even when the file is replaced at the second step of upload or when the user is editing an atom.

It could also be done at upload time like some other providers do, but then additional handling is required when the file is replaced like above.

Not committing it yet, as there will be some additional tests, and of course suggestions are welcome.

  • nagy.balint committed 1528880 on 7.x-1.x
    Issue #2359455 by nagy.balint: Create thumbnail for pdf files when...
nagy.balint’s picture

Status: Needs work » Fixed

Commited, as it seems to work fine. 1528880
Further improvements can be done in follow up issues.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.