如何将我的PHP代码(使用SyntaxHighlight)转换为图像(如jpeg或png)

I want to share my php source code with my friends but I do not want them copy or modify the code So .. I want to convert my source code( with SyntaxHighlight) to image (like png or jpeg) in my hard disk can any one tell me there is open source project which will help me do it? thank you

Presumably you have the code highlighted in HTML format, in which case what you're actually looking for is a way to convert HTML to an image. Which is exactly what wkhtmltoimage does.