diff options
Diffstat (limited to 'make_preview_image.lua')
-rwxr-xr-x | make_preview_image.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/make_preview_image.lua b/make_preview_image.lua index 8f6c55c..31f088d 100755 --- a/make_preview_image.lua +++ b/make_preview_image.lua @@ -1,8 +1,9 @@ #!/usr/bin/lua -local filename = "..." +local filename = ... local name = filename:match("([^\\/]+)%..*$") .. "_preview" + -- get colors local text = io.open(filename):read("*a") local colors = {} |