1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-06-12 22:27:32 +02:00
Files
imgproxy/vips/testing_helpers.go
2021-11-11 13:44:22 +06:00

24 lines
361 B
Go

package vips
import (
"sync"
"github.com/imgproxy/imgproxy/v3/imagetype"
)
func DisableLoadSupport(it imagetype.Type) {
typeSupportLoad.Store(it, false)
}
func ResetLoadSupport() {
typeSupportLoad = sync.Map{}
}
func DisableSaveSupport(it imagetype.Type) {
typeSupportSave.Store(it, false)
}
func ResetSaveSupport() {
typeSupportSave = sync.Map{}
}