You've already forked imgproxy
mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-12-03 23:19:17 +02:00
Fix segfaults on watermarking in somme cases
This commit is contained in:
@@ -4,6 +4,9 @@
|
|||||||
### Changed
|
### Changed
|
||||||
- Boolean processing options such as `enlarge` and `extend` are properly parsed. `1`, `t`, `TRUE`, `true`, `True` are truthy, `0`, `f`, `F`, `FALSE`, `false`, `False` are falsy. All other values are treated as falsy and generate a warning message.
|
- Boolean processing options such as `enlarge` and `extend` are properly parsed. `1`, `t`, `TRUE`, `true`, `True` are truthy, `0`, `f`, `F`, `FALSE`, `false`, `False` are falsy. All other values are treated as falsy and generate a warning message.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fix segfaults on watermarking in somme cases
|
||||||
|
|
||||||
## [2.6.2] - 2019-11-11
|
## [2.6.2] - 2019-11-11
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fix `format` option in presets.
|
- Fix `format` option in presets.
|
||||||
|
|||||||
@@ -252,6 +252,10 @@ func applyWatermark(img *vipsImage, wmData *imageData, opts *watermarkOptions, f
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := img.CopyMemory(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
wm := new(vipsImage)
|
wm := new(vipsImage)
|
||||||
defer wm.Clear()
|
defer wm.Clear()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user