https://github.com/icedream/lazlow
Lazy but low-effort animations out of existing images!
https://github.com/icedream/lazlow
Last synced: 5 months ago
JSON representation
Lazy but low-effort animations out of existing images!
- Host: GitHub
- URL: https://github.com/icedream/lazlow
- Owner: icedream
- Created: 2021-03-19T21:18:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-05-07T02:05:46.000Z (about 1 year ago)
- Last Synced: 2025-05-07T03:20:54.750Z (about 1 year ago)
- Language: Go
- Size: 89.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# LazLow Image & Animation Generator
This tool is made to let you easily modify or animate images with preprogrammed effects.
Currently supported effects:
- Animated violent image shaking
- Discord ping count overlay
Currently supported output formats:
- GIF (static and animated), you want to use this format for when you upload animations as emojis to Discord
- WebP (static and animated), this is better for static images on Discord, WebP animations somehow don't work there yet
- PNG (static and animated), however Animated PNG tends to be unsupported by most software
- JPEG (static only)
## Requirements
- If you want to use the Discord Ping effect, you will need `whitneybold.otf` from [the Whitney font package](https://www.cufonfonts.com/download/font/whitney-2) extracted as-is to the directory where you run the executable.
## Usage
usage: lazlow []
Lazy, low-effort meme generator tool
Flags:
--help Show context-sensitive help.
-t, --output-type=auto Output file type
--discord-ping-number=1 What the red counter at the bottom right should display
--shake-delay=20ms Delay between frames
--shake-frames=12 How many frames to generate
--shake-percentage=20 How much to shake the picture in percent
--jpeg-quality=90 The quality level with which JPEG output will be written, where 100 = lossless and lower will be increasingly lossy.
--webp-lossless Enable lossless output
Args:
Effect to use
Input file name
Output file name
## Examples
Shake an image of your choice:
lazlow shake yourimage.png yourimage_shake.gif
Above but more violently:
lazlow shake yourimage.png yourimage_shake.gif --shake-percentage=50
As a WebP instead:
lazlow shake yourimage.png yourimage_shake.webp
As APNG instead:
lazlow shake yourimage.png yourimage_shake.png
Put a discord ping counter on an image:
lazlow discord-ping yourimage.png yourimage_ping.png
Above, but with the counter saying 1337 instead of just 1:
lazlow discord-ping yourimage.png yourimage_ping.png --discord-ping-number=1337
## Known issues
- Animated WebP files generated by this tool fail to load on Discord, it's unknown whether this is just an issue with this tool's output or with animated WebP files in general.
## Building
All you need to compile is [Go](https://golang.org), you don't even have to clone the source code since Go will do that for you. Just run this command:
go get github.com/icedream/lazlow/cmd/lazlow
This is enough to build the binary and it will be put into your `${GOPATH}/bin` by Go.