Initial commit

This commit is contained in:
2024-08-27 20:33:44 +02:00
commit 1f1832267d
14794 changed files with 1599592 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
from typing import ClassVar, List
from .base import OptimizerBase
__all__ = ["Gifsicle"]
class Gifsicle(OptimizerBase):
"""http://www.lcdf.org/gifsicle/"""
library_name: ClassVar[str] = "gifsicle"
image_format: ClassVar[str] = "gif"
@classmethod
def get_command_arguments(cls, file_path: str) -> List[str]:
return [
"-b", # required parameter for the package
"-O3", # slowest, but produces best results
file_path, # the file
]