Open kheina opened 7 months ago
The first patch mixes the Go version update with other unrelated changes. if you send me a patch with just the bump to 1.21 (and you could even go to 1.22) and the use of the builtins min and max, I'll apply it.
For the second patch, it seems like a good idea but a quick read shows a couple minor issues (e.g. if the argument is now optional, why would you make it mandatory in readFilePath
?). I'll see what I can do when I get the time.
imax
in favor of go's built-inmax
functioncmd/thumbhash/main.go
slightly to add support for piping image data directly tothumbhash encode-image
for better interoperability