mirror of
https://github.com/sbondCo/Watcharr.git
synced 2026-08-07 07:14:44 +00:00
4cc9bd3edb
- Create a better (more) re-usable flow for downloading images to disk and inserting images into the db - Validate images properly by reading them fully and using DecodeConfig - Fix some security issues by re-encoding images - Always outputs one format `jpeg`, which keeps everything "normalized" and adds compression to images (mainly user uploads which might be big).
8 lines
101 B
Go
8 lines
101 B
Go
package util
|
|
|
|
const (
|
|
Byte int64 = 1
|
|
Kibibyte int64 = 1024
|
|
Mebibyte int64 = 1024 * Kibibyte
|
|
)
|