Skip to content

Commit 6d05396

Browse files
committed
Add exif copying docs
1 parent 7383639 commit 6d05396

File tree

1 file changed

+12
-0
lines changed
  • packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker

1 file changed

+12
-0
lines changed

packages/image_picker/image_picker_android/android/src/main/java/io/flutter/plugins/imagepicker/ExifDataCopier.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@
1010
import java.util.List;
1111

1212
class ExifDataCopier {
13+
/**
14+
* Copies all exif data not related to image structure and orientation tag. Data not related to
15+
* image structure consists of category II (Shooting condition related metadata) and category III
16+
* (Metadata storing other information) tags. Category I tags are not copied because they may be
17+
* invalidated as a result of resizing. The exception is the orientation tag which is known to not
18+
* be invalidated and is crucial for proper display of the image.
19+
*
20+
* <p>The categories mentioned refer to standard "CIPA DC-008-Translation-2012 Exchangeable image
21+
* file format for digital still cameras: Exif Version 2.3"
22+
* https://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf. Version 2.3 has been chosen because
23+
* {@code ExifInterface} is based on it.
24+
*/
1325
void copyExif(ExifInterface oldExif, ExifInterface newExif) throws IOException {
1426
@SuppressWarnings("deprecation")
1527
List<String> attributes =

0 commit comments

Comments
 (0)