Wish that the text could superimpose images?

Hello
Here is an example where it is implemented in php.

personalcase.endorphone.com.ua/apple-iphone-5s-per...
prntscr.com/ayomux

Tell me how to do or what direction to dig
Thank you.
July 12th 19 at 16:38
2 answers
July 12th 19 at 16:40
Solution
GD is unlikely to succeed do you need Imagick.
Found on the Internet an example of adding text to the image.
$image = new Imagick();
$image->newImage(800, 75, new ImagickPixel('transparent'));

$draw = new ImagickDraw();
$draw->setFillColor('#000'); // text color
$draw->setFont('path/to/font/Atial.ttf'); // path to the font file
$draw->setFontSize(30); // font size

$image->annotateImage($draw, 0, 0, 0, 'Text');
$image->setImageFormat('png');


Try to $apply method draw setImageBackgroundColor().
July 12th 19 at 16:42
To dig in the direction of positioning can be done with absolute positioning, and put the picture inside the text diva of course, apply stylistic effects, like transform: rotate(90deg); to tilt diva
it was possible but the picture is generated on the server side. - Orlo.Emmeri commented on July 12th 19 at 16:45
that is, you need to make the application as the second picture that You attached? - Orlo.Emmeri commented on July 12th 19 at 16:48
You goes Yes - Orlo.Emmeri commented on July 12th 19 at 16:51
blunted, blunt on the title of the question was answered - Orlo.Emmeri commented on July 12th 19 at 16:54
anything thanks anyway - Orlo.Emmeri commented on July 12th 19 at 16:57
: The problem is users can upload their pictures, you can example to see - Orlo.Emmeri commented on July 12th 19 at 17:00

Find more questions by tags PHP