PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I want an option that user can enter text and height or width of the image. On the basis of height/width and no of characters of text I want to calculate width/height of the image and font size which fits in this dimension of image. How can we do this?
How can I do this? I have only image width, font file and text . Using this I have to calculate image height and font size. imagefontwidth() and imagefontheight() take fontsize as paramater and value must be between 1-5 and I have to calculate fontsize. Can somebody tell me how can I do this?