Ask HN: Open framework for generating thumbnails on untrusted files?

Share This Post

Hi HN – for part of a project I’m working on, I need to generate previews/thumbnails of files that may be untrusted. This would be across a variety of file types (the usual suspects like graphics files, documents, video), but also ideally is easily extended with downloadable “handlers” such that more obscure file types can be handled at run-time. Ideally the result is cross-platform in that it can be run on windows/linux/osx clients, but also on server infra (e.g. cloudflare workers).

I have searched the web and github (and had ChatGPT do that too) and while there are some frameworks out there like `preview-generator` in the python ecosystem and `thumbnailator`, they all seem to shell out to native handlers. While native handlers are all well and good and there are good examples for extensible plugin systems with native code, it does complicate things for runtime extensibility.

My initial thought was to define a simple function API and have the “handlers” implemented in WebAssembly such that they can be loaded and runtime and effectively sandboxed, one shot stream processors.

Does anyone know if anything project like this already exists, or does anyone have any advice?


Comments URL: https://news.ycombinator.com/item?id=45582431

Points: 1

# Comments: 0

Source: news.ycombinator.com

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Windows Securitym Hackers Feeds

ChatGPT will soon allow erotica for verified adults

Article URL: https://www.bbc.com/news/articles/cpd2qv58yl5o Comments URL: https://news.ycombinator.com/item?id=45587328 Points: 1 # Comments: 0 Source: www.bbc.com

Windows Securitym Hackers Feeds

Typst 0.14 just entered its final testing period

Article URL: https://forum.typst.app/t/typst-0-14-just-entered-its-final-testing-period-your-help-is-wanted/6363 Comments URL: https://news.ycombinator.com/item?id=45587323 Points: 1 # Comments: 0 Source: forum.typst.app

Do You Want To Boost Your Business?

drop us a line and keep in touch

We are here to help

One of our technicians will be with you shortly.