1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-29 08:22:11 +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{}
}