Это видео недоступно.
Сожалеем об этом.
Generating certificates using student photo QR code & logo with data from MySQL table using PHP GD
HTML-код
- Опубликовано: 23 июл 2021
- Part II of this tutorial : • Generating certificate...
Adding QR code
By sending the id of the student to google charts, we can get back the QR code as an image. Same can be added to the source image.
Adding student photo to the source image.
This can be done by storing photo of each student in a folder. Based on the unique id of the student we can create images in PNG or JPG format. For the student with id 4 will have file name as 4.png , similarly for other students the files will be kept in the folder.
By using imagecopy() function we can add the image of the respective student to its certificate. We are getting student id from the database table and based on this ID we can collect the matching photo of the student.
All photos are kept inside a folder named as photos, so the path is accordingly created.
$str=imagecreatefrompng("photos/".$row[id].".png");
imagecopy($img_source,$str, 60, 310 , 0, 0, 100, 100);
We can add common logo to images
$str=imagecreatefrompng("logo.png");
imagecopy($img_source,$str, 280, 50 , 0, 0, 50, 50);
Tutorial with Source code and sample images are available inside zip file at
plus2net.com/ph...
Part 1 www.plus2net.c...
#gdimagewithphotoa #mysqldatatwithlogo #gdphotologo #addingphotologo #plus2net #gdcertificateprinting #phppdomysqlgd
how can add a crop image in this certificate
Great 👍👏 tutorial
Glad you liked it!
mera show nahi kar rha h sir help me plz only one box show o v sirf arround 50*50 ka white box show ho rha h kya karu
Yada nahi he, please fir se details me post kare.
Sir qt code set ho gya hai leken scane karne per blank hai
Aur mene aap ka bhi scane kiya to aapka bhi blank hai
At present there are some issues with plus2net.com , it is down so I can't show the example. I will back with proper sample to check.
www.plus2net.com/python/tkinter.php
Scan the QR code towards the end of the page and check, it is working.
qr code not appearing
www.plus2net.com/php_tutorial/gd-certificate-mysql-qr.php
Are you getting QR code from google, then integrate the same by using GD , read the previous parts also.
Size problem ho rhi hai sir
Place the image and check the coordinates, by experimenting with few positions, you can able to place the images. Try small size ones
Good job bro, JESUS IS COMING BACK VERY SOON;WATCH AND PREPARE