Calculate the size of the shadow of the text to be inserted...?

Hello GMIC’s,

Is there a way to detect the affected range (position x,y and width,higth) of the insertet text?
I’d like to insert some text in my images with the command -text… - but sometimes the text is not readable, because of the color in the image. So I’d like to insert an shadow - just where the text is placed.
Because the text is not fix (the width can differ from image to image) I should know, how many pixels the text affects - to be able to place a shadow of the right size…
How to do that (or what to search for… :slight_smile: )

Thanks a lot
Thomas

I think command -text_outline is something you could be interested in :

http://gmic.eu/reference.shtml#text_outline

I use it every time I have to be sure the text will be readable, whatever the background colors are.