I'm trying to write an image manipulation script that will take a square image, cut out the right size in a perfect circle, I've got the code for that, so good there.
Now, I need to be able to copy the edge of a circle continually until it makes the circle 30px greater in radius.
there is text in the middle that cannot move. There could be icons and logos in it as well. None of this should move. Thus the reason I'm trying to do it this way.
But here's an example(the image is mirrored on purpose):


I know they aren't perfect, but imagine the white border on the first image is transparent space, and the red in the second image is an exact match to the red in the image.
Also, if there is a line that is horizontal, the expanded image should keep that line horizontal. Lets say in the above image that the word "The"(backwards on the picture) has a line under it, black, expanding all the way to the edge. I need to be able to keep that line going, even to the new edge, and vertically as well.
I know this is not an easy thing to do, it might not even be possible with normal logic since this depends on relative logic.
I'm not good with photos and colors and such, I'm good at programming.
If you have any ideas on how this might be accomplished. Please let me know.