A lightweight web application that allows users to easily upload images to Imgur using Python (Flask) and HTML.
- Simple and intuitive user interface
- Direct upload to Imgur
- Copy-to-clipboard functionality for uploaded image links
Before you begin, ensure you have met the following requirements:
- Python 3.6+
- Flask
- imgurpython
-
Clone the repository:
git clone https://github.com/TaahDev/Imgur-Image-Uploader.git cd Imgur-Image-Uploader
-
Install the required packages:
pip install flask imgurpython
-
Set up your Imgur API credentials:
- Go to Imgur API
- Select "Anonymous usage without user authorization" for the Authorization type
- Type in
https://api.imgur.com/
for the Authorization callback URL - Replace
CLIENT_ID
andCLIENT_SECRET
inapp.py
with your Imgur API credentials
-
Run the application:
python app.py
-
Open a web browser and navigate to
http://localhost:5000
-
Select an image file and click "Upload"
-
After successful upload, you'll see the Imgur link. Click to copy or Ctrl+Click to open in a new tab.
app.py
: Main Flask applicationtemplates/
: HTML templatesindex.html
: Home page with upload formupload.html
: Success page with Imgur link
static/
: CSS stylesheets and other static files
Contributions are welcome! Please feel free to submit a Pull Request.
- Add drag-and-drop functionality for image uploads
- Add support for multiple image uploads simultaneously
- Implement error handling for failed uploads and display appropriate messages
- Add a feature to upload images via URL
This project is open source and available under the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication license.