How To Convert View File In Image And Return In Api In Laravel
I am creating an API in laravel. In which, I have to convert blade file into image and should return path of converted image or base64 in api. I am using html2canvas. routes are:
Solution 1:
I have to convert blade file into image
Blade files are processed by Laravel on server. There is no direct way to convert them in images.
I have used htmlcanvas in core php. But I have no idea in laravel.
PHP doesn't have this functionality. HtmlCanvas is part of browser DOM. Unless you've used some custom PHP extension, what I think you did was creating the image on browser using javascript/canvas and then send it to the server (which is exactly the way to go with Laravel as well).
Post a Comment for "How To Convert View File In Image And Return In Api In Laravel"