diff --git a/resizer.go b/resizer.go index d3bed89..a76944f 100644 --- a/resizer.go +++ b/resizer.go @@ -320,12 +320,12 @@ func rotateAndFlipImage(image *C.VipsImage, o Options) (*C.VipsImage, bool, erro if o.Flip { rotated = true - image, err = vipsFlip(image, Vertical) + image, err = vipsFlip(image, Horizontal) } if o.Flop { rotated = true - image, err = vipsFlip(image, Horizontal) + image, err = vipsFlip(image, Vertical) } return image, rotated, err } diff --git a/testdata/exif/Landscape_1_out.jpg b/testdata/exif/Landscape_1_out.jpg index 033589e..1ffcaaf 100644 Binary files a/testdata/exif/Landscape_1_out.jpg and b/testdata/exif/Landscape_1_out.jpg differ diff --git a/testdata/exif/Landscape_2_out.jpg b/testdata/exif/Landscape_2_out.jpg index 1b2259f..aab8a2a 100644 Binary files a/testdata/exif/Landscape_2_out.jpg and b/testdata/exif/Landscape_2_out.jpg differ diff --git a/testdata/exif/Landscape_3_out.jpg b/testdata/exif/Landscape_3_out.jpg index 681964a..a7132c7 100644 Binary files a/testdata/exif/Landscape_3_out.jpg and b/testdata/exif/Landscape_3_out.jpg differ diff --git a/testdata/exif/Landscape_4_out.jpg b/testdata/exif/Landscape_4_out.jpg index fee30ea..95b8ea9 100644 Binary files a/testdata/exif/Landscape_4_out.jpg and b/testdata/exif/Landscape_4_out.jpg differ diff --git a/testdata/exif/Landscape_5_out.jpg b/testdata/exif/Landscape_5_out.jpg index fbd8f5b..5227db8 100644 Binary files a/testdata/exif/Landscape_5_out.jpg and b/testdata/exif/Landscape_5_out.jpg differ diff --git a/testdata/exif/Landscape_6_out.jpg b/testdata/exif/Landscape_6_out.jpg index 1ec5d12..ea031f7 100644 Binary files a/testdata/exif/Landscape_6_out.jpg and b/testdata/exif/Landscape_6_out.jpg differ diff --git a/testdata/exif/Landscape_7_out.jpg b/testdata/exif/Landscape_7_out.jpg index 8a4f94c..0e6350b 100644 Binary files a/testdata/exif/Landscape_7_out.jpg and b/testdata/exif/Landscape_7_out.jpg differ diff --git a/testdata/exif/Landscape_8_out.jpg b/testdata/exif/Landscape_8_out.jpg index 3e50c6f..04f6b2c 100644 Binary files a/testdata/exif/Landscape_8_out.jpg and b/testdata/exif/Landscape_8_out.jpg differ diff --git a/testdata/test_gif.jpg b/testdata/test_gif.jpg index 7f28bce..d2ae362 100644 Binary files a/testdata/test_gif.jpg and b/testdata/test_gif.jpg differ diff --git a/testdata/test_pdf.jpg b/testdata/test_pdf.jpg index bbb26c5..f80af8b 100644 Binary files a/testdata/test_pdf.jpg and b/testdata/test_pdf.jpg differ diff --git a/testdata/test_smart_crop.jpg b/testdata/test_smart_crop.jpg index ff4a349..5acb94a 100644 Binary files a/testdata/test_smart_crop.jpg and b/testdata/test_smart_crop.jpg differ diff --git a/testdata/test_svg.jpg b/testdata/test_svg.jpg index 77b4714..dba7747 100644 Binary files a/testdata/test_svg.jpg and b/testdata/test_svg.jpg differ diff --git a/testdata/transparent_trim.png b/testdata/transparent_trim.png index 8087810..3be5f96 100644 Binary files a/testdata/transparent_trim.png and b/testdata/transparent_trim.png differ