shitpic

package module
v0.0.0-...-7f384b2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 6 Imported by: 0

README

shitpic GoDoc

As explained in The Awl, a shitpic happens, “when an image is put through some diabolical combination of uploading, screencapping, filtering, cropping, and reuploading. They are particularly popular on Instagram.”

shitpic is a utility for creating shitpics. It recompresses an input file a number of times (default 100) and saves the degraded output.

Example

Input:

Clean monkey

Output:

Dirty monkey

Installation

First install Go.

If you just want to install the binary to your current directory, and don't care about the source code, run

GOBIN=$(pwd) GOPATH=/tmp/gobuild go get github.com/earthboundkid/shitpic

Usage

$ shitpic -h
Usage of shitpic:
    shitpic [options] input output

Shitpic accepts and can output JPEG, GIF, and PNG files.

  -cycles uint
        How many times to reprocess input (default 100)
  -quality int
        Lower bound of quality (0–100) (default 75)
  -reduce-colors
        Reduce to 256 colors

Relevant XKCD

Who knew you could learn so much about sexual reproduction from looking at pictures on the internet!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gifize

func Gifize(in io.Reader, out io.Writer) error

func Pngerate

func Pngerate(in io.Reader, out io.Writer) error

func Recompress

func Recompress(in io.Reader, out io.Writer, quality int) error

func Uglify

func Uglify(in []byte, while func(func() bool), lowerBound int) ([]byte, error)

Types

This section is empty.

Directories

Path Synopsis
cmd
dicpic command
shitpic command
spew command
spew-server command

Jump to

Keyboard shortcuts

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