From 5f1f3fa55e998cd6021af7614275c3a1afb8b501 Mon Sep 17 00:00:00 2001 From: dan Date: Sun, 12 Mar 2023 23:51:02 -0400 Subject: feat: set exif orientation data on stored jpegs --- lib/exif_wrapper.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib') 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. -- cgit v1.2.3