mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-02-07 11:36:25 +02:00
Better processing options logging
This commit is contained in:
parent
8c4a561b9e
commit
0eb96b0b42
@ -87,6 +87,33 @@ type processingOptions struct {
|
||||
Sharpen float32
|
||||
}
|
||||
|
||||
func (it imageType) String() string {
|
||||
for k, v := range imageTypes {
|
||||
if v == it {
|
||||
return k
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (gt gravityType) String() string {
|
||||
for k, v := range gravityTypes {
|
||||
if v == gt {
|
||||
return k
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (rt resizeType) String() string {
|
||||
for k, v := range resizeTypes {
|
||||
if v == rt {
|
||||
return k
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func decodeURL(parts []string) (string, imageType, error) {
|
||||
var imgType imageType = imageTypeJPEG
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user