In order to create a text overlay, you can either pre-define a text style by your preference (e.g., font family, size, color, and more), or dynamically define one.
Pre-defining a text style:
You can create a text style by your choice of font family, size, color and many more parameters.
For more information:
Text styles can be generated via the API with our integration libraries as well. For example in PHP:
\Cloudinary\Uploader::text("Sample Name", array( "public_id" => "dark_name", "font_family" => "Arial", "font_size" => 12, "font_color" => "black", "opacity" => 90));
After the text style has been created, any custom text string can be generated as a text overlay:
Also, you can dynamically change the font's color:
Dynamically generate a text style:
You can generate a text style by your requirements on-the-fly, including font family, size, decoration and more.
Here's an example of a URL with an on-the-fly generated text style:
You can also set the
color parameter (
co in URLs) to dynamically color the font to your required color: