Skip to content

Commit

Permalink
Don't spam info script-message
Browse files Browse the repository at this point in the history
  • Loading branch information
po5 committed Nov 1, 2022
1 parent 89bbe39 commit bb68b79
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion thumbfast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ local effective_w = options.max_width
local effective_h = options.max_height
local real_w = nil
local real_h = nil
local last_real_w = nil
local last_real_h = nil

local script_name = nil

Expand Down Expand Up @@ -527,7 +529,10 @@ local function check_new_thumb()
move_file(tmp, options.thumbnail..".bgra")

real_w, real_h = w, h
if real_w then info(real_w, real_h) end
if real_w and (real_w ~= last_real_w or real_h ~= last_real_h) then
last_real_w, last_real_h = real_w, real_h
info(real_w, real_h)
end
return true
end
return false
Expand Down

0 comments on commit bb68b79

Please sign in to comment.