Skip to content

Commit 87a0231

Browse files
committed
add "cache" flag to system_image
1 parent d680f2c commit 87a0231

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

share/nip4/start/_magick.def

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ Magick = class {
7777
version
7878
= map parse_int (split (member ".-") version_string)
7979
{
80-
output = vips_call9 "system"
81-
["'" ++ command_path ++ "' -version"] [$log=>true,
82-
$revalidate=>true];
80+
output = vips_call9 "system" ["'" ++ command_path ++ "' -version"] [
81+
$log=>true
82+
];
8383
version_string
8484
= (split (equal ' ') output)?1, use_gm
8585
= (split (equal ' ') output)?2;

share/nip4/start/_stdenv.def

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,8 +2399,14 @@ system_image command x
23992399
system im
24002400
= image_out
24012401
{
2402-
[image_out, log] =
2403-
im_system_image (get_image im) "%s.tif" "%s.tif" command;
2402+
[image_out, log] = vips_call9 "system" [command] [
2403+
$in => [get_image im],
2404+
$out => true,
2405+
$in_format => "%s.tif",
2406+
$out_format => "%s.tif",
2407+
$cache => true,
2408+
$log => true
2409+
];
24042410
}
24052411
}
24062412

0 commit comments

Comments
 (0)