mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 20:22:31 +02:00
Better processing options logging
This commit is contained in:
@@ -87,6 +87,33 @@ type processingOptions struct {
|
|||||||
Sharpen float32
|
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) {
|
func decodeURL(parts []string) (string, imageType, error) {
|
||||||
var imgType imageType = imageTypeJPEG
|
var imgType imageType = imageTypeJPEG
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user