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

前端 未结 2 1088
無奈伤痛
無奈伤痛 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: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.)

    
    

提交回复
热议问题