You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The thing is that I have a page with 4 divs that I have to save as separate images, it has worked perfectly for me to convert a div to an image.
I am generating the images through an ajax call, when clicking on a button, I have thought of passing the selectors of the divs as an array and then in the php
something like $instance = Browsershot::url(...);
then in a foreach, for each selector something like
$instance->select('#'.$selector, 0);
and then save it
$instance->save($pathToImage);
but maybe do you have some option for this "save several images from the same page" and I did not see it in the documentation ?? :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The thing is that I have a page with 4 divs that I have to save as separate images, it has worked perfectly for me to convert a div to an image.
I am generating the images through an ajax call, when clicking on a button, I have thought of passing the selectors of the divs as an array and then in the php
something like $instance = Browsershot::url(...);
then in a foreach, for each selector something like
$instance->select('#'.$selector, 0);
and then save it
$instance->save($pathToImage);
but maybe do you have some option for this "save several images from the same page" and I did not see it in the documentation ?? :)
I am not using Laravel.
Great library by the way. Really helpful!!
Beta Was this translation helpful? Give feedback.
All reactions