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