spatie / medialibrary.pro

The source code of medialibrary.pro
https://medialibrary.pro
36 stars 9 forks source link

PDF preview not shown #57

Closed loesungsmittel closed 3 weeks ago

loesungsmittel commented 4 months ago

Medialibrary Pro’s Livewire component has a bug on PDF previews. This was not an issue before upgrading Livewire to v3 and Medialibrary to the latest version. When using a livewire component, uploaded PDF file’s preview is broken. The reason is that conversion of a PDF file is still a PDF file, instead of an image. Conversion PDF file contains a cropped image of a preview inside it, and the browser is not able to render PDF file as an image. But after attaching it to an actual model, preview is correct and is an image. So the issue is only on TemporaryUpload model, but I can not find the reason why it is happening.

image

spatie-bot commented 3 weeks ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.