Answer the question
In order to leave comments, you need to log in
How to pass variable to Image Intervention function?
Hello!
Need help!
I have an array where the colors are stored, I need to pass it to the library function image.intervention.io/api/rectangle
Specifically like this -
// draw transparent rectangle with 2px border
$img->rectangle(5, 5, 195, 195, function ($draw) {
$draw->background($menu['color']);
$draw->border(2, '#000');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question