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

Go Agent Development Kit

Article URL: https://github.com/Raezil/go-agent-development-kit Comments URL: https://news.ycombinator.com/item?id=45589461 Points: 1 # Comments: 1 Source: github.com

Windows Securitym Hackers Feeds

iPhone Air review: Back to the future

Article URL: https://sixcolors.com/post/2025/10/iphone-air-review-back-to-the-future/ Comments URL: https://news.ycombinator.com/item?id=45589418 Points: 2 # Comments: 0 Source: sixcolors.com

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.