Want to render an image without saving it to disk using PHP GD libs

前端 未结 2 1071
無奈伤痛
無奈伤痛 2021-01-14 06:56

Hi have the following function

function renderBusinessCard($details){
        //Getting the template for the business card
        $filename = Templates::mod         


        
相关标签:
2条回答
  • 2021-01-14 07:02

    It may be better to keep the $details array in session data if it's not too big. Then calling will call the script and associate the correct details data.

    0 讨论(0)
  • 2021-01-14 07:17

    You need to render the image in a separate resource. There is no good way of adding the image data inside the HTML document. (Anybody thinking of recommending data: URIs: It's a terrible idea.)

    <img src="renderBusinessCard.php?param1=1&param2=2">
    
    0 讨论(0)
提交回复
热议问题