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
Raw Normal View History

2021-04-26 13:52:50 +02:00
package vips
import (
"sync"
"github.com/imgproxy/imgproxy/v3/imagetype"
)
2021-04-26 13:52:50 +02:00
func DisableLoadSupport(it imagetype.Type) {
typeSupportLoad.Store(it, false)
2021-04-26 13:52:50 +02:00
}
func ResetLoadSupport() {
typeSupportLoad = sync.Map{}
2021-04-26 13:52:50 +02:00
}
func DisableSaveSupport(it imagetype.Type) {
typeSupportSave.Store(it, false)
2021-04-26 13:52:50 +02:00
}
func ResetSaveSupport() {
typeSupportSave = sync.Map{}
2021-04-26 13:52:50 +02:00
}