use leaflet lib

This commit is contained in:
Swrup 2022-04-08 10:39:20 +02:00
parent ce7bb9d386
commit ccba00b2e7
5 changed files with 78 additions and 117 deletions

View file

@ -115,7 +115,7 @@ let make_thumbnail content =
Cmd.(
v "convert" % "-define" % "jpeg:size=700x700" % p image_file
% "-auto-orient" % "-thumbnail" % "300x300>" % "-unsharp" % "0x.5"
% "-format" % "jpg" % p thumb_file)
% "-format" % "jpg" % p thumb_file )
in
let* () = OS.Cmd.run cmd in
let* thumbnail = OS.File.read thumb_file in