1
0

testing_helpers.go 361 B

1234567891011121314151617181920212223
  1. package vips
  2. import (
  3. "sync"
  4. "github.com/imgproxy/imgproxy/v3/imagetype"
  5. )
  6. func DisableLoadSupport(it imagetype.Type) {
  7. typeSupportLoad.Store(it, false)
  8. }
  9. func ResetLoadSupport() {
  10. typeSupportLoad = sync.Map{}
  11. }
  12. func DisableSaveSupport(it imagetype.Type) {
  13. typeSupportSave.Store(it, false)
  14. }
  15. func ResetSaveSupport() {
  16. typeSupportSave = sync.Map{}
  17. }