somehow-digital / typo3-media-processing

"Media Processing" for TYPO3 integrates various image processing libraries and SaaS cloud services into TYPO3 by leveraging their APIs to process images.
https://somehow.digital
GNU General Public License v3.0
6 stars 1 forks source link

PDF preview image missing in file selector #17

Closed rtp-cgs closed 1 week ago

rtp-cgs commented 1 month ago

The PDF preview images are missing in the file selector.

CleanShot 2024-08-08 at 16 08 06

thasmo commented 4 weeks ago

Your PR suggests that the underlying issue is that TYPO3 does not supply the dimensions for the PDF document. Is that correct? Do we know why this is? Should TYPO3 actually supply the dimensions in the first place?

thasmo commented 4 weeks ago

Wondering if it's possible to add some post-uploading event handler and use something like https://github.com/smalot/pdfparser to read correct dimensions and then persist those in the sys_file table.

thasmo commented 3 weeks ago

I'm going to fix this via several changes:

rtp-cgs commented 3 weeks ago

Maybe this could help to get the filesizes: https://docs.imgproxy.net/usage/getting_info

thasmo commented 1 week ago

I've fixed the issue by determining PDF dimensions prior to processing.