You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The image thumbnails are retrieved by the UI via a custom electron protocol. The implementation of the custom electron protocol is in the main process. We should generate the thumbnail there. NodeJS APIs are available in the main process, so we could use e.g. GraphicsMagick like this approach: https://gist.github.com/jamilnyc/71bb717c95835bcc1d848b5158e90abb.
Here is the implementation of the custom protocol:
'cache-control': `max-age=${60*60*24}`,// cache for 1 day
},
};
}
The text was updated successfully, but these errors were encountered:
pkerschbaum
changed the title
[Enhancement]: Resources Gallery View:
[Enhancement]: Resources Gallery View: Show thumbnails for PDF (and perhaps MS Office) files
Jan 14, 2022
Current Behavior
Thumbnails in the Resources Gallery View are shown only for images and SVG files:
file-explorer/src/platform/electron/native-host.ts
Line 15 in 076c16d
Desired Behavior
Add support for additional file types:
Implementation Notes
Here is the implementation of the custom protocol:
file-explorer/src/platform/electron/protocol/electron-main/app.ts
Lines 46 to 79 in 076c16d
The text was updated successfully, but these errors were encountered: