
Security News
crates.io Ships Security Tab and Tightens Publishing Controls
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.
This package creates an image that can be drawn on, and provides an EmitFrame() method to pipe the image to FFMPEG, and a Close() method to finish the animation.
The process of actually drawing frames of animation is left as an exercise for the reader.
The extension of the destination file determines the encoding format and parameters:
.gif: Creates a looping indexed GIF animation.
Generating an optimal palette would require buffering the entire animation, so instead a fixed general purpose palette is used.
.png/.apng: Creates a looping animated PNG image. Lossless and supports transparency.
This is the only supported format that is both completely lossless and supports transparency.
.mp4: Creates an MP4 video using the libx264rgb codec with the ultrafast preset. Should be lossless, but doesn't support transparency.
The file will be quite large, and probably isn't something you'd want to distribute directly.
.mkv: Identical to MP4, except with a Matroska container.
.webp: Creates a looping WEBP animation. The RGB->YUV conversion is lossy, but is otherwise lossless and supports transparency.
.webm: Creates a WEBM video. The RGB->YUV conversion is lossy, but is otherwise lossless and supports transparency.
go get smariot.com/animate
You can find the documentation at https://pkg.go.dev/smariot.com/animate.
The cmd/demo directory contains a simple program to demonstrate this package by generating the following image:

FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.