All Projects → stumpycr → stumpy_gif

stumpycr / stumpy_gif

Licence: MIT license
Write GIF images in pure Crystal

Programming Languages

crystal
512 projects

Projects that are alternatives of or similar to stumpy gif

xaringanBuilder
An R package for building xaringan slides into multiple outputs, including html, pdf, png, gif, pptx, and mp4.
Stars: ✭ 157 (+772.22%)
Mutual labels:  gif
sail
The missing small and fast image decoding library for humans (not for machines) ⛵ https://sail.software
Stars: ✭ 206 (+1044.44%)
Mutual labels:  gif
SSSwiftUIGIFView
SSSwiftUIGIFView is a custom controller which helps to load GIF in SwiftUI.
Stars: ✭ 48 (+166.67%)
Mutual labels:  gif
AnyImageKit
A toolbox for pick/edit/capture photo or video. Written in Swift.
Stars: ✭ 580 (+3122.22%)
Mutual labels:  gif
StbSharp
C# port of the famous C framework
Stars: ✭ 62 (+244.44%)
Mutual labels:  gif
GifReversingBot
A Reddit bot that reverses gifs
Stars: ✭ 38 (+111.11%)
Mutual labels:  gif
kap-imgur
Kap plugin - Share GIFs on Imgur
Stars: ✭ 20 (+11.11%)
Mutual labels:  gif
congif
convert script(1) output to GIF
Stars: ✭ 52 (+188.89%)
Mutual labels:  gif
gif-player
Control your animated GIFs
Stars: ✭ 120 (+566.67%)
Mutual labels:  gif
gifbar
🦄 Find Awesome Gif's right in your Menu Bar
Stars: ✭ 37 (+105.56%)
Mutual labels:  gif
ios-nd-gif-maker-swift
Resources for Udacity's Gif Maker app in Swift.
Stars: ✭ 13 (-27.78%)
Mutual labels:  gif
gogif
The (no longer) missing GIF encoder for #golang
Stars: ✭ 21 (+16.67%)
Mutual labels:  gif
GiphyImageResultsPreview
Library for GIF results, preview, play, share everything at one place!
Stars: ✭ 28 (+55.56%)
Mutual labels:  gif
View-Load-ReTry
这个加载框架有点不一样,针对View进行加载,加载页面还保持了原View的属性,侧重点在灵活,哪里需要加载哪里,加载状态页面完全自定义,无任何限制,针对加载结果可以按需配置对应页面,LeakCanary检测无内存泄漏
Stars: ✭ 116 (+544.44%)
Mutual labels:  gif
Among-Us-Dumpy-Gif-Maker
A tool to make dumpy among us GIFS
Stars: ✭ 537 (+2883.33%)
Mutual labels:  gif
xvcode
web dynamic validation code generator 动态web校验码图片生成
Stars: ✭ 43 (+138.89%)
Mutual labels:  gif
togglific
Do you find web animations distracting? Togglific provides a distraction-free web experience!
Stars: ✭ 17 (-5.56%)
Mutual labels:  gif
piskel
A simple web-based tool for Spriting and Pixel art.
Stars: ✭ 9,109 (+50505.56%)
Mutual labels:  gif
Kamel
Kotlin asynchronous media loading and caching library for Compose.
Stars: ✭ 138 (+666.67%)
Mutual labels:  gif
whatisnewdialog
An Android library for displaying a dialog where it presents new features in the app.
Stars: ✭ 22 (+22.22%)
Mutual labels:  gif

stumpy_gif

Interface

  • StumpyGIF.write(frames : Array(Canvas), path_or_io, delay_between_frames = 10) saves a list of frames (canvasses) as a GIF image file, delay_between_frames is in 1/100 of a second
  • Canvas and RGBA from stumpy_core

Usage

Writing

require "stumpy_gif"
include StumpyGIF

frames = [] of Canvas

(0..5).each do |z|
  canvas = Canvas.new(256, 256)

  (0..255).each do |x|
    (0..255).each do |y|
      color = RGBA.from_rgb_n([x, y, z * 51], 8)
      canvas[x, y] = color
    end
  end

  frames << canvas
end

StumpyGIF.write(frames, "rainbow.gif")

Left to right: Websafe, median split, NeuQuant

GIF image with an animated color gradient GIF image with an animated color gradient GIF image with an animated color gradient

(See examples/ for more examples)

Color Quantization Methods

  • Use Websafe colors
  • Median Split
  • NeuQuant

References

Contributors

Thanks goes to these wonderful people (emoji key):


Leon


Sam


Stepan Melnikov

💻

Dmitry Bochkarev

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].