mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-26 15:48:41 +00:00
Photoshop stores a small JPEG preview in a PSD's image resources. On upload, the desktop reads that preview and passes it to the image thumbnail generator, which scales it like any other image. PSB files work the same way. Only the resource headers are read, so the cost does not grow with the document: finding the preview takes at most 1 MiB of reads, and needs no worker or extra assets. A document saved without a preview keeps its file icon. The thumbnail service folder is renamed from pdfThumbnails to uploadThumbnails now that it handles two formats. The built asset path (/dist/pdf-thumbnails/) is unchanged.