ZioMark's HUB | API Documentation
DiscordAbout Me
  • 🔳Introduction
    • 🔐Authentication
  • 🔲GET Endpoints
    • ▫️Dec to Hex
    • ▫️Hex to Dec
    • ▫️Timetamp to Date
    • ▫️CFX
    • ▫️Date
    • ▫️Date & Time Formatter
    • ▫️Text over Image
    • ▫️Image over Image
    • ▫️Weather
    • ▫️Translate
    • ▫️Convert Currency
    • ▫️Geolocation
    • ▫️QR Code Generator
    • ▫️Image Format Converter
    • ▫️Key Generator
    • 🌐Bored
    • ▫️BMI Calculator
    • ▫️VAT Calculator
    • ▫️SEO Analyzer
    • ▫️Local Time
    • ▫️Discount Calculator
    • ▫️Discount Discover
  • 🔲POST Endpoints
    • ▫️HTML to PDF
    • ▫️Loan Calculator
    • ▫️Excel to CSV
Powered by GitBook
On this page
  • /text-over-image
  • Query Parameters
  • Response
  • Example
  1. GET Endpoints

Text over Image

This endpoint allows you to generate an image with customizable text and subtitle on a specified background. The generated image is then uploaded to Imgur, and the URL is returned.

/text-over-image

Query Parameters

  • background: (string) URL of the background image.

  • text: (string) Text to overlay on the background image.

  • color: (string) Color of the text in hexadecimal format (e.g., "#ffffff").

  • fontStyle: (string, optional) Style of the main text font (e.g., "Arial", "Times New Roman").

  • fontSize: (string, optional) Size of the main text font in pixels (e.g., "30px").

  • alignment: (string) Alignment of the main text and subtitle. Possible values are:

    • "center"

    • "topleft"

    • "topcenter"

    • "topright"

    • "bottomleft"

    • "bottomcenter"

    • "bottomright"

  • subtitle: (string, optional) Subtitle text to overlay on the background image.

  • subtitleColor: (string, optional) Color of the subtitle text in hexadecimal format.

  • subtitleFontStyle: (string, optional) Style of the subtitle font.

  • subtitleFontSize: (string, optional) Size of the subtitle font in pixels.

Arial
Helvetica
Georgia
Times New Roman
Verdana
Comic Sans MS
Tahoma
Palatino
Courier New

Response

{
    "imageUrl": "https://imgur.com/your_generated_image_url"
}

Example

GET /generate-image?background=<background_url>&text=Hello&color=black&fontStyle=Arial&fontSize=40&alignment=center&subtitle=World&subtitleColor=red&subtitleFontStyle=Arial&subtitleFontSize=30

Notes

  • If any error occurs during image generation or upload, a 500 error response will be returned with an error message.


PreviousDate & Time FormatterNextImage over Image

Last updated 1 year ago

🔲
▫️