Drupal has nothing to do here. What you want is to write Arabic text on/in an image in PHP.
The simplest and the most standard way is to use PHP's imagettftext()
. However, imagettftext()
does not fully support right-to-left languages like Arabic. You need to correctly reverse Arabic chars and pass them to imagettftext()
. See a duplicate : Error while writting Arabic to image