Utils: Update conversion command
For some gifs, my original convert command mangled the deltas and produced completly wrong frames. This is due to a couple of mistakes in the order of operations 1. The -coalesce option to flatten all layers up to the current frame needs to be before the output, not the input 2. Resizing was done *before* the coalesce option, leading to invalid delta frames and image corruption 3. This was emphasized by the thresholding, making it look mangled. Update the command in the script and the example in the README.
This commit is contained in:
parent
776a4e252f
commit
8935a6ee6d
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ for gifToConvert in "$@"; do
|
|||
mkdir "$animDir"
|
||||
pushd "$animDir"
|
||||
|
||||
convert -resize 84x48 -coalesce ../"$gifToConvert" -threshold 50% %02d.mono
|
||||
convert ../"$gifToConvert" -coalesce -resize 84x48 -threshold 50% %02d.mono
|
||||
"$bmp_help" ./*.mono
|
||||
# Clean up and remove the extension
|
||||
rm -f ./*.mono
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue