1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-08 10:45:04 +02:00
imgproxy/vips/testing_helpers.go
2021-05-07 17:10:21 +06:00

20 lines
375 B
Go

package vips
import "github.com/imgproxy/imgproxy/v2/imagetype"
func DisableLoadSupport(it imagetype.Type) {
typeSupportLoad[it] = false
}
func ResetLoadSupport() {
typeSupportLoad = make(map[imagetype.Type]bool)
}
func DisableSaveSupport(it imagetype.Type) {
typeSupportSave[it] = false
}
func ResetSaveSupport() {
typeSupportSave = make(map[imagetype.Type]bool)
}