mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-21 16:11:56 +00:00
Merge branch 'dev-0.1.51' into 'master'
0.1.51 See merge request goscrobble/goscrobble-api!9
This commit is contained in:
commit
9bfb9358df
@ -2,7 +2,7 @@ stages:
|
||||
- build
|
||||
|
||||
variables:
|
||||
VERSION: 0.1.4
|
||||
VERSION: 0.1.51
|
||||
|
||||
build-go:
|
||||
image: golang:1.17
|
||||
|
@ -1,3 +1,6 @@
|
||||
# 0.1.51
|
||||
- Fixed image resize to maintain aspect ratio
|
||||
|
||||
# 0.1.5
|
||||
- Add image upload endpoints for artist/albums @ v1/albums/{uuid}/upload
|
||||
|
||||
|
@ -114,7 +114,7 @@ func resizeImage(uuid string, size int) bool {
|
||||
}
|
||||
|
||||
// Resize image to specified size
|
||||
resizedImage := imaging.Resize(src, size, size, imaging.Lanczos)
|
||||
resizedImage := imaging.Resize(src, size, 0, imaging.Lanczos)
|
||||
|
||||
// Save resized image
|
||||
err = imaging.Save(resizedImage, DataDirectory+string(os.PathSeparator)+"img"+string(os.PathSeparator)+uuid+"_300px.jpg")
|
||||
|
@ -825,7 +825,7 @@ func getServerInfo(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
info := ServerInfo{
|
||||
Version: "0.1.4",
|
||||
Version: "0.1.51",
|
||||
RegistrationEnabled: registrationEnabled,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user