aboutsummaryrefslogtreecommitdiff
path: root/make_preview_image.lua
diff options
context:
space:
mode:
Diffstat (limited to 'make_preview_image.lua')
-rwxr-xr-xmake_preview_image.lua3
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 = {}