1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-02-07 11:36:25 +02:00

Disable extension checking if the raw processing option is used

This commit is contained in:
DarthSim 2023-04-10 20:13:26 +03:00
parent 49e5eb063c
commit 25459ef88c
2 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@
### Change
- Connecting to loopback, link-local multicast, and link-local unicast IP addresses when requesting source images is prohibited by default.
- Tuned source image downloading flow.
- Disable extension checking if the `raw` processing option is used.
### Fix
- (pro) Fix face detection during advanced smart crop in some cases.

View File

@ -1138,7 +1138,7 @@ func parsePathOptions(parts []string, headers http.Header) (*ProcessingOptions,
return nil, "", err
}
if len(extension) > 0 {
if !po.Raw && len(extension) > 0 {
if err = applyFormatOption(po, []string{extension}); err != nil {
return nil, "", err
}
@ -1165,7 +1165,7 @@ func parsePathPresets(parts []string, headers http.Header) (*ProcessingOptions,
return nil, "", err
}
if len(extension) > 0 {
if !po.Raw && len(extension) > 0 {
if err = applyFormatOption(po, []string{extension}); err != nil {
return nil, "", err
}