projects
/
fgen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
086b3ba
)
Support new background layer name
author
Hugo Villeneuve
<hugo@hugovil.com>
Fri, 6 Oct 2023 20:13:52 +0000
(16:13 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 7 Oct 2023 15:45:53 +0000
(11:45 -0400)
fgen.sh
patch
|
blob
|
history
diff --git
a/fgen.sh
b/fgen.sh
index
64baf44
..
ea04217
100755
(executable)
--- a/
fgen.sh
+++ b/
fgen.sh
@@
-9,7
+9,7
@@
set -e
PROG_NAME=$(basename $0)
# Set default values
PROG_NAME=$(basename $0)
# Set default values
-
main_layer="Layer 558
"
+
bg_layer_name="background
"
# Pour conversion vidéo:
fps=8
# Pour conversion vidéo:
fps=8
@@
-162,16
+162,21
@@
if [ ${trames} -eq 1 ]; then
${SED} -i -e /label:,.*/d ${layers}
# Extract global frame size:
${SED} -i -e /label:,.*/d ${layers}
# Extract global frame size:
- size=$(get_size "${
main_layer
}")
+ size=$(get_size "${
bg_layer_name
}")
- log_dbg "CANVAS SIZE=${size}"
+ log_dbg "Background size: ${size}"
+
+ if [ x"${size}" = x"" ]; then
+ echo "Error: background layer not found"
+ exit 1
+ fi
+
+ # Remove background line:
+ ${SED} -i -e /label:${bg_layer_name},.*/d ${layers}
# Create background frame:
convert -size ${size} xc:none ${dest}/background.png
# Create background frame:
convert -size ${size} xc:none ${dest}/background.png
- # Remove first line (Layer 558):
- ${SED} -i -e '1d' ${layers}
-
# Will start at frame 2 at first loop iteration
f=1
# Will start at frame 2 at first loop iteration
f=1