WithThumb set entity source as thumb. This will result in entity source URL generated with thumbnail processing parameters. For sidecar thumb files, this option will be ignored.
(isThumb bool)
| 140 | // generated with thumbnail processing parameters. For sidecar thumb files, |
| 141 | // this option will be ignored. |
| 142 | func WithThumb(isThumb bool) EntitySourceOption { |
| 143 | return EntitySourceOptionFunc(func(option any) { |
| 144 | option.(*EntitySourceOptions).IsThumb = isThumb |
| 145 | }) |
| 146 | } |
| 147 | |
| 148 | // WithDisableCryptor disable cryptor for file source, file stream will be |
| 149 | // presented as is. |
no test coverage detected