Closed BrainFeeder closed 6 years ago
We'll investigate on the problem soon..
After building image :
$background->build();
it is just a image so you can't use it as circular shape.If you want to do that create square image by using your 4 images and pass it to circular shape. Upgrade to latest version and see if errors still there.
This is an example for create circular shape using 4 images :
$img = new Square('./image1.jpg');
$img->setDefaults();
$img->resize($size/2, $size/2);
$img->build();
$img2 = new Square('./image2.jpg');
$img2->setDefaults();
$img2->resize($size/2, $size/2);
$img2->build();
$img3 = new Square('./image3.jpg');
$img3->setDefaults();
$img3->resize($size/2, $size/2);
$img3->build();
$img4 = new Square('./image4.jpg');
$img4->setDefaults();
$img4->resize($size/2, $size/2);
$img4->build();
$final = $img->merge($img2,125,0);
$final = $final->merge($img3, 0,125);
$image = $final->merge($img4,125,125);
$circular = new CircularShape($image);
$circular->build();
@BrainFeeder I think @antondias is correct, follow his code also please upgrade to latest ImageArtist Version, i'm closing this issue making as not reproducible issue
13 is about the same issue..
My transparent background color displays as pink.
I wanted to do something like Facebook does for group chats: merging participant avatars to be one image. Code I have:
And another unexpected behaviour: I hoped using circularShape would cut of corners from merged squares, so the resulting image would be a circle.