File indexing completed on 2024-05-19 11:20:56

0001 #!/bin/bash
0002 
0003  # ============================================================
0004  #
0005  # This file is a part of digiKam project
0006  # http://www.digikam.org
0007  #
0008  # Date        : 2023-01-27
0009  # Description : batch convert animated GIf to WEBP using ffmpeg
0010  #
0011  # SPDX-FileCopyrightText: 2021-2022 by Gilles Caulier <caulier dot gilles at googlemail dot com>
0012  #
0013  # SPDX-License-Identifier: BSD-3-Clause
0014  #
0015  # ============================================================ */
0016 
0017 for f in *.gif; do ffmpeg -y -i "$f" -r 10 $(basename "$f" | cut -d. -f1).webp ; done
0018 
0019 rm -fr *.gif
0020 
0021 git add *.webp