Centering text on fixed width/height box with no background color
I'm trying to use a text overlay with a fixed width/height area, and I would like to center the text within that area.
If I give the overlay a background color, it centers perfectly.
If I remove the background, it does not.
Am I doing something wrong, or is centering text on a transparent background not achievable? Thanks
-
Official comment
Hi Jerrica,
Since an overlay with transparent background make got trimmed, it behaves what you are seeing.
If you do not want to trim the text overlay, you can usefl_text_no_trim. To learn more about this flag, please check the following doc: https://cloudinary.com/documentation/transformation_reference#fl_text_no_trimSo in your example, this the URL looks like:
https://res.cloudinary.com/polco/image/upload/a_270,c_fit,fl_text_no_trim,g_north_west,h_29,l_text:roboto%20mono_20_center:ajf,o_100,w_86,x_22,y_39/v1630281404/sleeves/base_sleeve.pngLet me know if there is any question
Post is closed for comments.
Comments
1 comment