URL Images let's you generate images dynamically based on the provided URL parameters. This is particularly useful for creating custom images for articles, blog posts, or social media content.
https://url-image.vercel.app/api/cover?t=Image%20From%20URL%20Params&w=700
https://url-image.vercel.app/api/cover
t
ortitle
: The title text to be included in the image. This is a required parameter.d
ordesc
: The description text to be included in the image. This is optional.w
orwidth
: The width of the generated image in pixels. Default is1200
.h
orheight
: The height of the generated image in pixels. Default is630
.s
orstyle
: The style to be used for the image. Options includedefault
,minimal
,uno
,dos
, andtres
. Ifr
orrandom
is used, a style is randomly selected.
To generate an image, construct a URL using the above parameters. For example:
https://url-image.vercel.app/api/cover?t=My%20Article%20Title&d=Description%20of%20the%20article&w=800&h=630&s=uno
This URL will generate an image with the title "My Article Title", a description, the specified dimensions, and using the uno
style, as shown below.
default
: The default style for image generation.minimal
: A minimalistic style.uno
: A specific custom style.dos
: Another specific custom style.tres
: Yet another custom style.random
: Randomly selects one of the available styles.
Kindly note that this project is still in progress, and the contribution guide will be updated momentarily.