This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit 9c905049ae8f7e919e47198c263c1481ac227c3e
Author: Kim Woelders <[email protected]>
AuthorDate: Sat Sep 25 15:24:11 2021 +0200

    Add test/TEST-JPEG (Orientations)
---
 test/.gitignore                 |  17 +++++++++++++++++
 test/TEST-JPEG/Img-orient-1.jpg | Bin 0 -> 514447 bytes
 test/TEST-JPEG/Makefile         |  12 ++++++++++++
 test/TEST-JPEG/make-orients.sh  |  25 +++++++++++++++++++++++++
 4 files changed, 54 insertions(+)

diff --git a/test/.gitignore b/test/.gitignore
index ab836ea..7c996ab 100644
--- a/test/.gitignore
+++ b/test/.gitignore
@@ -1 +1,18 @@
 /*.d
+
+/TEST-JPEG/Img-orient-1a.jpg
+/TEST-JPEG/Img-orient-1b.jpg
+/TEST-JPEG/Img-orient-2a.jpg
+/TEST-JPEG/Img-orient-2b.jpg
+/TEST-JPEG/Img-orient-3a.jpg
+/TEST-JPEG/Img-orient-3b.jpg
+/TEST-JPEG/Img-orient-4a.jpg
+/TEST-JPEG/Img-orient-4b.jpg
+/TEST-JPEG/Img-orient-5a.jpg
+/TEST-JPEG/Img-orient-5b.jpg
+/TEST-JPEG/Img-orient-6a.jpg
+/TEST-JPEG/Img-orient-6b.jpg
+/TEST-JPEG/Img-orient-7a.jpg
+/TEST-JPEG/Img-orient-7b.jpg
+/TEST-JPEG/Img-orient-8a.jpg
+/TEST-JPEG/Img-orient-8b.jpg
diff --git a/test/TEST-JPEG/Img-orient-1.jpg b/test/TEST-JPEG/Img-orient-1.jpg
new file mode 100644
index 0000000..df43721
Binary files /dev/null and b/test/TEST-JPEG/Img-orient-1.jpg differ
diff --git a/test/TEST-JPEG/Makefile b/test/TEST-JPEG/Makefile
new file mode 100644
index 0000000..388a113
--- /dev/null
+++ b/test/TEST-JPEG/Makefile
@@ -0,0 +1,12 @@
+
+ IMG = Img-orient
+
+.PHONY: all images clean
+
+all: images
+
+images:
+	./make-orients.sh
+
+clean:
+	rm -f $(IMG)-??.jpg
diff --git a/test/TEST-JPEG/make-orients.sh b/test/TEST-JPEG/make-orients.sh
new file mode 100755
index 0000000..af5a757
--- /dev/null
+++ b/test/TEST-JPEG/make-orients.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+FI=Img-orient-1.jpg
+
+mk_orient() {
+    O=$1
+    FOA=${FI/-1/-${O}a}
+    FOB=${FI/-1/-${O}b}
+    cp $FI $FOA
+    echo -ne "\x0$O" | dd of=$FOA bs=1 conv=notrunc seek=66 2>/dev/null
+    if [ "$2" = "" ]; then
+        cp -a $FOA $FOB
+    else
+        exiftran -no $2 -o $FOB $FOA
+    fi
+}
+
+mk_orient "1"
+mk_orient "2" "-F"
+mk_orient "3" "-1"
+mk_orient "4" "-f"
+mk_orient "5" "-t"
+mk_orient "6" "-2"
+mk_orient "7" "-T"
+mk_orient "8" "-9"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to