summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordan <[email protected]>2023-03-12 23:51:02 -0400
committerdan <[email protected]>2023-03-12 23:51:02 -0400
commit5f1f3fa55e998cd6021af7614275c3a1afb8b501 (patch)
treecedc774f37d3c65ee27c97f68367f62c3456883a /lib
parentdc363d950e8d3b3c05f4cd0062d9dd59cc74e37e (diff)
download54-5f1f3fa55e998cd6021af7614275c3a1afb8b501.tar.gz
54-5f1f3fa55e998cd6021af7614275c3a1afb8b501.tar.bz2
54-5f1f3fa55e998cd6021af7614275c3a1afb8b501.zip
feat: set exif orientation data on stored jpegs
Diffstat (limited to 'lib')
-rw-r--r--lib/exif_wrapper.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/exif_wrapper.cpp b/lib/exif_wrapper.cpp
index e6b60b1..eab5598 100644
--- a/lib/exif_wrapper.cpp
+++ b/lib/exif_wrapper.cpp
@@ -36,11 +36,6 @@ extern "C" unsigned int getExifOrientation(uint8_t* imgBytes, unsigned int size)
}
extern "C" void setExifOrientation(uint8_t* imgBytes, unsigned int size, unsigned int orientation) {
- int chk = 0;
- for (int i = 0; i < size; i++) {
- chk = (chk + (int)imgBytes[i] * 13) % 100000;
- }
- printf("start chk:%d\n",chk);
try {
// Hack to work around Exiv2 seeming to refuse to write back to blob, but will write
// back to a file. Create temp file -> operate on it -> copy back to blob, unlink file.