cms icon indicating copy to clipboard operation
cms copied to clipboard

Disable thumbnail generation for PDFs

Open andjsch opened this issue 6 months ago • 2 comments

Bug description

I have a site that selected huge PDF files within a replicator. The page takes a long time to load in the CP. Turns out, it generates thumbnails for the PDFs, even though they are not used in the assets fieldtype for PDFs.

I believe that is a bug. No thumbnails should be generated for PDFs.

How to reproduce

Create an asset fieldtype and select a PDF. See how it queries the thumbnail in the network inspector for the PDF.

Logs


Environment

Environment
Laravel Version: 12.28.1
PHP Version: 8.4.7
Composer Version: 2.8.8
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: Europe/Vienna
Locale: de

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / daily
Mail: smtp
Queue: database
Session: file

Storage
public/storage: NOT LINKED

Livewire
Livewire: v3.6.4

Statamic
Addons: 4
Sites: 3 (Logistic, Spielwelten, Allgemein)
Stache Watcher: Disabled
Static Caching: Disabled
Version: 5.65.0 PRO

Statamic Addons
marcorieser/statamic-livewire: 5.0.0
spatie/statamic-responsive-images: 5.2.2
studio1902/statamic-peak-seo: 8.25.1
studio1902/statamic-peak-tools: 7.3.2

Installation

Existing Laravel app

Additional details

No response

andjsch avatar Sep 12 '25 13:09 andjsch

Which image manipulation driver are you using? GD or Imagick?

duncanmcclean avatar Sep 12 '25 13:09 duncanmcclean

Using Imagick. But happens with GD as well. It takes forever and the preview isn't used in the CP.

Image

andjsch avatar Sep 12 '25 15:09 andjsch