langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,8 @@
|
|||
let read_image ~filename =
|
||||
if not(Sys.file_exists filename)
|
||||
then failwith(Printf.sprintf "the file %s does not exist" filename);
|
||||
let cmd = Printf.sprintf "convert \"%s\" ppm:-" filename in
|
||||
let ic, oc = Unix.open_process cmd in
|
||||
let img = read_ppm ~ic in
|
||||
(img)
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue