EXIF Metadata Remover is a super cool 😎 Python script to remove EXIF metadata from your images 🖼️ and videos 📹 stored in an AWS S3 bucket. It's lightweight, efficient, and easy to use! Get rid of those pesky EXIF data and protect your privacy! 🛡️
- Supports multiple image formats:
.jpg
,.jpeg
,.png
,.tiff
,.tif
,.heic
,.heif
- Supports multiple video formats:
.mp4
,.mov
,.avi
,.mkv
,.webm
- AWS Lambda ready! ⚡
- Python 3.8 or higher
boto3
(AWS SDK for Python)Pillow
(Python Imaging Library)moviepy
(Video editing library)
- Clone the repo:
git clone https://github.com/flightlesstux/EXIF-Metadata-Remover.git
- Install the required packages:
pip3 install -r requirements.txt
- Replace
your-bucket-name
with the actual name of your S3 bucket, andyour-function-name
with the name of your Lambda function. This policy allows the Lambda function to read and write objects in the specified S3 bucket, invoke the Lambda function, and write logs to CloudWatch Logs.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "arn:aws:logs:*:*:*"
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::your-bucket-name/*"
]
},
{
"Effect": "Allow",
"Action": [
"lambda:InvokeFunction"
],
"Resource": "arn:aws:lambda:*:*:function:your-function-name"
}
]
}
- Set the
S3_BUCKET_NAME
environment variable to the name of your AWS S3 bucket.
- Upload an image or video to your S3 bucket.
- The script automatically processes the file and removes the EXIF metadata.
- The cleaned file is saved back to the S3 bucket with a tag
ExifDeleted=True
.
This project is licensed under the GNU GENERAL PUBLIC LICENSE License. See the LICENSE file for more information.
Secure Your Media Files by Removing Metadata with AWS Lambda