Skip to content

Commit

Permalink
added autoorient feature
Browse files Browse the repository at this point in the history
  • Loading branch information
naithar committed Jan 17, 2018
1 parent 458db50 commit 7f37468
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Sources/MagickWand/Wand/ImageWand/ImageWand+Resize.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ import CMagickWand

extension ImageWand {

public func autoOrient() -> Bool {
return MagickAutoOrientImage(self.pointer).bool
}

// https://www.imagemagick.org/api/magick-image.php
// TODO: Resize modes. like AspectFill, AspectFit.
// TODO: resized, rescaled -> ImageWand
Expand Down
2 changes: 1 addition & 1 deletion Tests/MagickWandTests/ImageWandTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class ImageWandTests: XCTestCase {
private let variants: [(name: String, type: String)] = [
("PNG", "png"),
("JPEG", "jpeg"),
("PDF", "pdf"), //FIXME: does not work on linux
("PDF", "pdf"),
("GIF", "gif"),
//("SVG", "svg"), //FIXME: cannot create or read
("TIFF", "tiff"),
Expand Down

0 comments on commit 7f37468

Please sign in to comment.