This is a simple Python application built using Tkinter and the Unsplash API to display and download images based on user-selected categories.
- Allows users to select image categories from a dropdown menu.
- Generates and displays random images based on the selected category.
- Provides an option to download the displayed image.
-
Clone the repository:
git clone https://github.com/zxankit24/image-generator.git cd image-generator
-
Install the required dependencies:
pip install -r requirements.txt
-
Goto
https://unsplash.com/developers
- And create Your App
- Copy Access Key and
- Obtain an Access Key from Unsplash Developers and paste it in Main.py at line 27.
-
Run the application:
python image_generator.py
- Upon running the application, a graphical interface will open.
- Choose a category from the dropdown menu and click "Generate Image" to display a random image from that category.
- Click "Download Image" to save the displayed image to your local system.
- Python 3.x
requests
: HTTP library for making API requestsPillow
: Python Imaging Library for image processingttkbootstrap
: Library for themed Tkinter widgets
Contributions are welcome! If you want to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/your-feature
). - Create a new Pull Request.