1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-24 08:12:38 +02:00
imgproxy/vips/testing_helpers.go

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{}
}