Skip to main content

Pre-compiled gifsicle binary for GIF optimization

Project description

gifsicle-bin

PyPI License: GPL v2

Pre-compiled gifsicle binary distributed as a Python wheel.

  • Developers: Let your Python app take advantage of gifsicle optimization without forcing users to do an OS-level installation of it.
  • Users: Get GIF optimization powers easily on multiple OSes without needing package installation permissions.

Built for agent-log-gif.

How is this different from pygifsicle?

pygifsicle requires users to install the gifsicle binary separately (brew install gifsicle, apt install gifsicle, etc.). While pygifsicle helps automate this somewhat, this still requires root permissions on most GNU/Linux distributions, and requires users to have Homebrew or manually install gifsicle themselves on Mac.

Use pygifsicle if you want to leverage the gifsicle on user's systems already, and if you don't care which specific version they have.

gifsicle-bin bundles the compiled gifsicle binary inside the wheel at a deterministic version and makes it available via the pip/uv dependency resolution mechanisms your Python code already uses.

Use gifsicle-bin if you want end users to be able to use gifsicle without needing a precondition of brew install or apt installing it, or if you want to use a deterministic version of gifsicle.

Manual Installation

pip install gifsicle-bin
# or
uv add gifsicle-bin

Usage

Once installed, gifsicle is available as a command:

gifsicle -O2 --lossy=80 input.gif -o output.gif

Or from Python:

import subprocess
subprocess.run(["gifsicle", "-O2", "--lossy=80", "input.gif", "-o", "output.gif"])

To use gifsicle provided by gifsicle-bin as a one off (in a CI build step, etc.):

uvx gifsicle-bin

(eg uvx gifsicle-bin -O2 input.gif -o output.gif)

Development instructions for gifsicle-bin

Updating gifsicle version

gifsicle's original source is used via a clean git submodule without patching or modification.

cd vendor/gifsicle && git fetch --tags && git checkout vX.Y && cd ../..

Update the version in pyproject.toml and config.h.cmake.in (grep for the old version). If configure.ac changed between versions, check for new HAVE_* defines and add matching entries to CMakeLists.txt + config.h.cmake.in.

To publish, create a new tag and release for vX.Y. CI will build wheels for all platforms and publish to PyPI via OIDC.

License

gifsicle is Copyright (C) 1997-2025 Eddie Kohler and distributed under the GNU General Public License, Version 2.

This package redistributes gifsicle as a compiled binary. The source code is available at https://github.com/kohler/gifsicle.

Using gifsicle-bin from non-GPL programs: gifsicle-bin is a convenience package that puts the gifsicle CLI on your PATH. gifsicle-bin still requires calling gifsicle externally (eg via subprocess.run) as a separate program ("at arms length"). See the FSF's Plugins and Proprietary Systems FAQs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gifsicle_bin-1.96.2.tar.gz (488.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gifsicle_bin-1.96.2-py3-none-win_arm64.whl (104.5 kB view details)

Uploaded Python 3Windows ARM64

gifsicle_bin-1.96.2-py3-none-win_amd64.whl (117.4 kB view details)

Uploaded Python 3Windows x86-64

gifsicle_bin-1.96.2-py3-none-musllinux_1_2_x86_64.whl (140.2 kB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

gifsicle_bin-1.96.2-py3-none-musllinux_1_2_aarch64.whl (138.0 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

gifsicle_bin-1.96.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (136.7 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

gifsicle_bin-1.96.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (133.6 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

gifsicle_bin-1.96.2-py3-none-macosx_10_9_universal2.whl (230.6 kB view details)

Uploaded Python 3macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file gifsicle_bin-1.96.2.tar.gz.

File metadata

  • Download URL: gifsicle_bin-1.96.2.tar.gz
  • Upload date:
  • Size: 488.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gifsicle_bin-1.96.2.tar.gz
Algorithm Hash digest
SHA256 cbddb6b2460b40e57fcbb5532a3de1ab1f96e00c6b949b6fdfc821b4f3fb7fc3
MD5 efc5d2a03b779003f81965bd5bd5b743
BLAKE2b-256 024f285c241d48e9e577ac1c028cc0592a323d25f8f525b98065ed05b965d773

See more details on using hashes here.

Provenance

The following attestation bundles were made for gifsicle_bin-1.96.2.tar.gz:

Publisher: build.yml on ysamlan/gifsicle-bin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gifsicle_bin-1.96.2-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for gifsicle_bin-1.96.2-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 cf88543d8cff35ebbcdbce5a948c3ebb5e216bc40f1d664448bd9b3fe74a9a1c
MD5 1a1f6eaea1a70b8f69cb7b715d8a8487
BLAKE2b-256 94a9f726b6dd60ca1545a39cc936bddea192ad8d35401f5f9c0fc46848a598ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for gifsicle_bin-1.96.2-py3-none-win_arm64.whl:

Publisher: build.yml on ysamlan/gifsicle-bin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gifsicle_bin-1.96.2-py3-none-win_amd64.whl.

File metadata

  • Download URL: gifsicle_bin-1.96.2-py3-none-win_amd64.whl
  • Upload date:
  • Size: 117.4 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gifsicle_bin-1.96.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9f48e7736edaa79bb67dd25178b24d75258a1217f83d63f2e6021ec49e5653b0
MD5 6afe79f28bdeb35c81dd3f6e10c18db6
BLAKE2b-256 42c52f2f722dd65d16af4dad95ebe321b45e140371929afc7b4a74314bec91dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for gifsicle_bin-1.96.2-py3-none-win_amd64.whl:

Publisher: build.yml on ysamlan/gifsicle-bin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gifsicle_bin-1.96.2-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for gifsicle_bin-1.96.2-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b6d7ca443c6f5c067f619128d8f874d32096fc111e1f2cdc1dac0495709e0977
MD5 d70faa4845b113b6f589e72ca4f4a984
BLAKE2b-256 b71ae49049558534f856d379c02cca9828144f23cdfd74aec631511ea246122d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gifsicle_bin-1.96.2-py3-none-musllinux_1_2_x86_64.whl:

Publisher: build.yml on ysamlan/gifsicle-bin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gifsicle_bin-1.96.2-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for gifsicle_bin-1.96.2-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0e07006b41cdb2038a7e1675e802788241ce8b728387395bede285c1c0a87ee1
MD5 4cd9953f8d9fa5b2f71620094fbd5d0a
BLAKE2b-256 a99ae0864b9ddc35b40fb4de8026c0307ec137cebb863eda37c9ef19d6628eae

See more details on using hashes here.

Provenance

The following attestation bundles were made for gifsicle_bin-1.96.2-py3-none-musllinux_1_2_aarch64.whl:

Publisher: build.yml on ysamlan/gifsicle-bin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gifsicle_bin-1.96.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gifsicle_bin-1.96.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2cafb87450f18718f5c095d71af0380238e86e46f8b0922654b82fb5b56a65d6
MD5 505c12ce76e93b495ea7dc335af4c54e
BLAKE2b-256 51292932115f71473985109c258d3a902e61a2ce2541cf5d18dd7b59a532e829

See more details on using hashes here.

Provenance

The following attestation bundles were made for gifsicle_bin-1.96.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build.yml on ysamlan/gifsicle-bin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gifsicle_bin-1.96.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for gifsicle_bin-1.96.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bf572b5784934e2d22dc2a0aa25fd0c54368cdad245f23e71707407250497e82
MD5 23f40efe41735acc2bb065510307db2d
BLAKE2b-256 17bdcc4bf73fd68df99c307c9ac202a5abf5479cd30cfe06296cf81cc8689a88

See more details on using hashes here.

Provenance

The following attestation bundles were made for gifsicle_bin-1.96.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build.yml on ysamlan/gifsicle-bin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gifsicle_bin-1.96.2-py3-none-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for gifsicle_bin-1.96.2-py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0e4f074ed58caa35c1a75ba2ba3e418b2ab8f63d370aa63d2b4dc9ae57231c25
MD5 363a9cf6aa94f590b6c752230896e2e1
BLAKE2b-256 3a9ca7efdaee4f3fecaa302046ab4cd9666ddc435b46ed55ae71542d09c2cc94

See more details on using hashes here.

Provenance

The following attestation bundles were made for gifsicle_bin-1.96.2-py3-none-macosx_10_9_universal2.whl:

Publisher: build.yml on ysamlan/gifsicle-bin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page