๐ Thumbline Generator
๐ธ Create dynamic OG images with ease using Thumbline Generator, powered by Nuxt 3! Ideal for social media optimization and generating professional thumbnails for your links.
Features
- ๐จ Customizable Titles: Add custom titles to your OG images.
- ๐ผ๏ธ Background & Text Color Customization: Personalize your images with different background and text colors.
- ๐๏ธ Logo Integration: Add logos to the top left of your images.
- ๐ฆ Serverless Architecture: Built with Nuxt 3 for fast, efficient performance.
- ๐ PNG Output: Generate images in PNG format for easy sharing.
๐ Links
๐ API Usage
Endpoint
GET /api/og-image
Query Parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
title | string | Yes | The main title text to display on the image. | My Awesome Blog Post |
bgColor | string | No | Hex code for the background color of the image. | #1e293b |
textColor | string | No | Hex code for the color of the text. | #ffffff |
logoUrl | string | No | URL of the logo image to display in the top left corner. | https://example.com/logo.png |
Example Request
GET http://localhost:3000/api/og-image?title=My%20Awesome%20Blog%20Post&bgColor=%231e293b&textColor=%23ffffff&logoUrl=https://example.com/logo.png
Example Response
The above request will return an Open Graph image with the specified parameters, which can be used for social sharing.
Error Responses
If the title
parameter is missing, the API will return the following error:
{
"error": "Title is required"
}
๐ค Contributing
We welcome contributions! To contribute:
- ๐ด Fork the repository.
- ๐ฟ Create a new branch (
git checkout -b feature-branch
). - ๐พ Commit your changes (
git commit -m 'Add new feature'
). - ๐ Push to the branch (
git push origin feature-branch
). - ๐ Open a pull request.
๐ License
This project is licensed under the MIT License. See the LICENSE file for details.
Created with โค๏ธ by [Nexos Creation](https://github.com/nexoscreation)