Hacker News new | ask | show | jobs
by mschuster91 2967 days ago
> What if you want a cross-platform way to create a thumbnail of a pdf? Ugg, don't let me get started on ghostscript...

Embed statically linked versions of imagick in your program or download them upon first load/setup.

2 comments

Someone who knows how to do that probably isn’t programming in electron.
ImageMagick requires Ghostscript to handle pdfs. So you need both.

Except on OSX, where you can use SIPS. But on Windows, you're stuck with IM/GS.