Skip to content

Commit

Permalink
feat: add option to compress image
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Mar 28, 2024
1 parent 401f175 commit 5440bb4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 120 deletions.
4 changes: 3 additions & 1 deletion .env_example
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ IV = 40f38a55cb4fec35 # 16 Bytes
MAX_HEIGHT = 1024
MAX_WIDTH = 1024
PORT = 3000
HOST = 0.0.0.0
HOST = 0.0.0.0

COMPRESS_IMAGE = true # Whenever want to get smaller image size
6 changes: 1 addition & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@ require (
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/philhofer/fwd v1.1.2 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/savsgio/dictpool v0.0.0-20221023140959-7bf2e61cea94 // indirect
github.com/savsgio/gotils v0.0.0-20230208104028-c358bd845dee // indirect
github.com/tinylib/msgp v1.1.8 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.51.0 // indirect
github.com/valyala/tcplisten v1.0.0 // indirect
golang.org/x/image v0.10.0 // indirect
golang.org/x/image v0.15.0 // indirect
golang.org/x/net v0.22.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
Expand Down
Loading

0 comments on commit 5440bb4

Please sign in to comment.