Liking cljdoc? Tell your friends :D

lupapiste-commons.external-preview


create-previewclj

(create-preview content content-type muuntaja-url)

Tries to create preview image. Uses external muuntaja / laundry server for PDFs and local JVM for images. Returns always an input stream with JPEG image content. If the preview generation fails, returns a placeholder image.

Tries to create preview image. Uses external muuntaja / laundry server for PDFs and local JVM for images.
Returns always an input stream with JPEG image content. If the preview generation fails, returns a placeholder image.
sourceraw docstring

pdf-preview-pathclj

source

placeholder-image-isclj

(placeholder-image-is)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close