In my Laravel 5.8 app using "intervention/image": "^2.4"
library and css like:
.banner_image {
border-radius: 20%;
border-style: outset;
-webkit-border-radius: 20%;
-moz-border-radius: 20%;
-webkit-box-shadow: #000 0 2px 10px;
-moz-box-shadow: #000 0 2px 10px;
padding: 8px;
box-shadow: 0px 0px 20px #b4b4b4;
border-top:none;
border-left:none;
border-right:solid 2px #dddddd;
border-bottom:solid 2px #dddddd;
}
I generate banners based on rows in db with title, text and logo image: https://prnt.sc/oefaev
I used text method like
$img->text($banner_short_descr, 20 /* x */, 150 /* y */, function($font) use($text_color) {
$font->file( public_path('fonts/roboto/Roboto_regular.ttf') );
$font->size(24);
$font->color($text_color);
});
Now I need to add 2 features:
- Raise text of the banner and add some shadow to it.
- Raise border of the whole banner. If possible make several external/internal borders
How can I do this?