giftool

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 9 Imported by: 0

README

koron/giftool

PkgGoDev Actions/Go Go Report Card

Getting Started

Requirements: Go 1.23 or later

Install and update:

$ go install github.com/koron/giftool

Or use pre-compiled binaries from the latest release.

Extract a representative (rep) frame from animation GIF. The representative frame is selected as the frame with the highest image entropy.

$ giftool extract rep path/to/animation.gif

Extracted image is saved to path/to/animation_rep.png

説明: 代表フレームの取り出し方 (Description in Japanese)

アニメーションGIFから代表フレームを取り出し保存するコマンドは以下の通りです。

$ giftool extract rep path/to/animation.gif

この時、取り出した画像は path/to/animation_rep.png として保存されます。

より一般的な使い方は以下のようになります。

$ giftool extract rep [OPTIONS] {INPUT ANIMATION GIF}

サポートしているオプションは以下の通りです。

  • -grayedentropy エントロピーの計算にグレースケールに変換した画像を使う。デフォルトは入力画像そのままのカラーモードを使う。
  • -output {出力ファイル名} 出力ファイル名を指定する。 省略時は {入力ファイル名のベース部分}_rep.png となる。

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
analyse
Package analyse provides sub-commands to analyze GIF file.
Package analyse provides sub-commands to analyze GIF file.
extract
Package extract provides "extract" sub command: extract all images from a GIF image.
Package extract provides "extract" sub command: extract all images from a GIF image.
gifutil
Package gifutil provides utility functions to manipulate GIF image.
Package gifutil provides utility functions to manipulate GIF image.
imgutil
Package imgutil provides utility functions to manipulate generic image.Image.
Package imgutil provides utility functions to manipulate generic image.Image.
info
Package info provides "info" sub command: to show GIF image information.
Package info provides "info" sub command: to show GIF image information.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL