fix custom watermark issue

a fix for better backwards compatibility made reading the size not work as well. new build_custom_watermark_blend function resolves both problems
This commit is contained in:
cajun
2024-12-22 08:36:05 -06:00
parent 2125fe9ee6
commit d8809169b6
2 changed files with 33 additions and 28 deletions

View File

@@ -1101,19 +1101,6 @@ set_watermark_blend := {
}
spotlight_watermark_blend := {
face := [1:card.card_color, 2:card.card_color_2, 3:card.card_color_3][face]
if type_of(input) == type_of("string") then (
array := split_comma(input)
input := array.0
if length(array) > 1 then (
px := px_split(array.2)
if length(px) > 2
then l := 0
else (
l := px.0
h := px.1
)
)
)
if l < 1 or h < 1 or l > 1024 or h > 1024 then (
input