# HG changeset patch # User David Barts # Date 1586577483 25200 # Node ID e52fd1a575de3551fdb509626be909e094fe3881 # Parent 9bbe6d803eba79246a5fd80ffd9dac548bef26d9 Add Mac icons. diff -r 9bbe6d803eba -r e52fd1a575de ExifWasher.iconset/icon_128x128.png Binary file ExifWasher.iconset/icon_128x128.png has changed diff -r 9bbe6d803eba -r e52fd1a575de ExifWasher.iconset/icon_128x128@2x.png Binary file ExifWasher.iconset/icon_128x128@2x.png has changed diff -r 9bbe6d803eba -r e52fd1a575de ExifWasher.iconset/icon_16x16.png Binary file ExifWasher.iconset/icon_16x16.png has changed diff -r 9bbe6d803eba -r e52fd1a575de ExifWasher.iconset/icon_16x16@2x.png Binary file ExifWasher.iconset/icon_16x16@2x.png has changed diff -r 9bbe6d803eba -r e52fd1a575de ExifWasher.iconset/icon_256x256.png Binary file ExifWasher.iconset/icon_256x256.png has changed diff -r 9bbe6d803eba -r e52fd1a575de ExifWasher.iconset/icon_256x256@2x.png Binary file ExifWasher.iconset/icon_256x256@2x.png has changed diff -r 9bbe6d803eba -r e52fd1a575de ExifWasher.iconset/icon_32x32.png Binary file ExifWasher.iconset/icon_32x32.png has changed diff -r 9bbe6d803eba -r e52fd1a575de ExifWasher.iconset/icon_32x32@2x.png Binary file ExifWasher.iconset/icon_32x32@2x.png has changed diff -r 9bbe6d803eba -r e52fd1a575de ExifWasher.iconset/icon_512x512.png Binary file ExifWasher.iconset/icon_512x512.png has changed diff -r 9bbe6d803eba -r e52fd1a575de ExifWasher.iconset/icon_512x512@2x.png Binary file ExifWasher.iconset/icon_512x512@2x.png has changed diff -r 9bbe6d803eba -r e52fd1a575de build.xml --- a/build.xml Fri Apr 10 19:29:58 2020 -0700 +++ b/build.xml Fri Apr 10 20:58:03 2020 -0700 @@ -108,6 +108,7 @@ + @@ -115,7 +116,9 @@ version="1.0"/> + copyright="© MMXX, David W. Barts"> + + @@ -130,6 +133,9 @@ + + + diff -r 9bbe6d803eba -r e52fd1a575de icon.jpg Binary file icon.jpg has changed diff -r 9bbe6d803eba -r e52fd1a575de icon.xcf Binary file icon.xcf has changed diff -r 9bbe6d803eba -r e52fd1a575de src/name/blackcap/exifwasher/WashDialog.kt --- a/src/name/blackcap/exifwasher/WashDialog.kt Fri Apr 10 19:29:58 2020 -0700 +++ b/src/name/blackcap/exifwasher/WashDialog.kt Fri Apr 10 20:58:03 2020 -0700 @@ -153,6 +153,19 @@ val (name, ext) = splitext(washing.name) var newFile = File(outDir, "${name}_washed${ext}") + /* warn (and allow user to back out) if overwriting */ + if (newFile.exists()) { + val answer = JOptionPane.showConfirmDialog(Application.mainFrame, + "File ${newFile.name} already exists. Overwrite?", + "Confirm overwriting file", + JOptionPane.YES_NO_OPTION, + JOptionPane.WARNING_MESSAGE) + if (answer != JOptionPane.YES_OPTION) { + close() + return + } + } + /* copy the file, then edit the Exif in the copy */ useWaitCursor() swingWorker { diff -r 9bbe6d803eba -r e52fd1a575de src/name/blackcap/exifwasher/default.properties --- a/src/name/blackcap/exifwasher/default.properties Fri Apr 10 19:29:58 2020 -0700 +++ b/src/name/blackcap/exifwasher/default.properties Fri Apr 10 20:58:03 2020 -0700 @@ -2,6 +2,7 @@ outputToInputDir=true whitelist=\ Exif.Image.ColorMap,\ + Exif.Image.ExifTag,\ Exif.Image.Indexed,\ Exif.Image.InterColorProfile,\ Exif.Image.Orientation,\