OSDN Git Service

Ensure consistent image thumbnail handling.
authorRuben Brunk <rubenbrunk@google.com>
Fri, 19 Apr 2013 22:41:28 +0000 (15:41 -0700)
committerRuben Brunk <rubenbrunk@google.com>
Fri, 19 Apr 2013 22:41:28 +0000 (15:41 -0700)
Bug: 7192433

Change-Id: Ie86ade06b7234681a0d955a87cacfb337bc39145

src/com/android/gallery3d/filtershow/tools/SaveCopyTask.java

index 35c1553..c5851c4 100644 (file)
@@ -197,6 +197,9 @@ public class SaveCopyTask extends AsyncTask<ImagePreset, Void, Uri> {
                 exif.setTag(exif.buildTag(ExifInterface.TAG_ORIENTATION,
                         ExifInterface.Orientation.TOP_LEFT));
 
+                // Remove old thumbnail
+                exif.removeCompressedThumbnail();
+
                 // If we succeed in writing the bitmap as a jpeg, return a uri.
                 if (putExifData(this.destinationFile, exif, bitmap)) {
                     putPanoramaXMPData(this.destinationFile, xmp);