Modify Image Location

by Qwerty Cat

Version 1 (November 26, 2020)

Download (9 downloads)

Modify latitude and longitude recorded in JPG's EXIF data. Support both big and little endian.

Limitation
big images(usually >1MB) may cause strange errors like OutOfMemoryError, SQLiteBlobTooBigException

note
- Google Photo doesn't recognize gps data unless the modified file is located in directory backed up by itself. Save the file in DCIM/Camera if you can't see changes.

- Since Automate doesn't support some features natively, a few tricks were needed to be utilized:
- Read image file using ISO-8859-1 encoding. Default UTF-8 encoding replaces unknown characters with U+FF character.
- Use array methods like slice() on the string containing binary data.