Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
First upload of project
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Sep 5, 2017
1 parent 52ffc87 commit 0a33dea
Show file tree
Hide file tree
Showing 11 changed files with 1,174 additions and 0 deletions.
6 changes: 6 additions & 0 deletions App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
67 changes: 67 additions & 0 deletions Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions Form1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace KillEXIF
{
public partial class Form1 : Form
{

string[] fileList = null;

public Form1()
{
InitializeComponent();
}

private void button1_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
e.Effect = DragDropEffects.Copy;
}
}

private void button1_DragDrop(object sender, DragEventArgs e)
{

if (e.Data.GetDataPresent(DataFormats.FileDrop))
{
fileList = (string[])e.Data.GetData(DataFormats.FileDrop, false);
e.Effect = DragDropEffects.Copy;
button1.Text = "";
foreach (var file in fileList)
{
button1.Text += file + "\n";
}

button1.Text += "\n\nCLICK TO REMOVE EXIF";
}
}

private void button1_Click(object sender, EventArgs e)
{
if(fileList == null)
{
MessageBox.Show("You have to select one or more files first.");
}
else
{
foreach (var file in fileList)
{
((System.Drawing.Bitmap)System.Drawing.Image.FromFile(file).Clone()).Save(System.IO.Path.ChangeExtension(file, null) + "_anon.png");
}
}
}
}
}
Loading

0 comments on commit 0a33dea

Please sign in to comment.