First, on the left, in the wavy text tools, select the wavy title you want to create.
Then on the right, in Preview tools, adjust the Width and Height and font size of the indicative Border so that its dimensions match the title you have created.
Finally, set the Border to zero so that it does not exist in the photo.