mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
feat(#189): allow strip image metadata via bimg.Options.StripMetadata = bool
This commit is contained in:
parent
d31288c3c8
commit
ab4ef56bab
25 changed files with 12 additions and 8 deletions
|
|
@ -33,7 +33,7 @@ func TestVipsSave(t *testing.T) {
|
|||
|
||||
for _, typ := range types {
|
||||
image, _, _ := vipsRead(readImage("test.jpg"))
|
||||
options := vipsSaveOptions{Quality: 95, Type: typ}
|
||||
options := vipsSaveOptions{Quality: 95, Type: typ, StripMetadata: true}
|
||||
|
||||
buf, err := vipsSave(image, options)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue