This project is an image generation application built with Next.js. Users can upload images and generate the necessary img tags with AI-generated alt text.
This project aims to allow users to upload images and generate img tags that include alt text generated by AI.
- Image upload functionality
- Configuration options for img tags
- AI-generated alt text
- Copying of generated img tags
To run this project locally, follow these steps:
-
Clone the repository.
git clone https://github.com/harumiWeb/img-generator.git
-
Navigate to the directory.
cd img-generator
-
Install the dependencies.
npm install
To start the development server, run the following command:
npm run dev
Open your browser and go to http://localhost:3000 to see the application.
Create a .env
file in the root of your project and add the following environment variables:
NEXT_PUBLIC_BASE_URL=<your_home_url>
GEMINI_API_KEY=<your_gemini_api_key>
NODE_ENV=development # Use 'production' for the production environment
Replace <your_home_url>
with your application's home URL and <your_gemini_api_key>
with your Gemini API key.
If you want to contribute to this project, please follow these steps:
-
Fork the repository.
-
Create a new branch.
git checkout -b feature/YourFeature
-
Commit your changes.
git commit -m "Add some feature"
-
Push to the branch.
git push origin feature/YourFeature
-
Create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.