From 0ae04c58e6b885c2a5ec71a79252bda1058104a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Fri, 22 Nov 2024 03:10:17 +0100 Subject: [PATCH] Add facebook source file --- public/facebook/source.php | 44 +++++++++++++++++++++++++++++++++++++ public/facebook/source.png | Bin 0 -> 3165 bytes 2 files changed, 44 insertions(+) create mode 100644 public/facebook/source.php create mode 100644 public/facebook/source.png diff --git a/public/facebook/source.php b/public/facebook/source.php new file mode 100644 index 0000000..6cfe80e --- /dev/null +++ b/public/facebook/source.php @@ -0,0 +1,44 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +//Create image object +$image = new Imagick(); + +//Create draw object +$draw = new ImagickDraw(); + +//Create pixel object +$pixel = new ImagickPixel('white'); + +//Create new image +$image->newImage(1200, 630, $pixel); + +//Set fill color +$draw->setFillColor('black'); + +//Set font properties +$draw->setFont('../woff2/droidsans.regular.woff2'); +$draw->setFontSize(30); + +//Add texts +$image->annotateImage($draw, 10, 35, 0, 'RP'); +$image->annotateImage($draw, 10, 615, 0, 'RP'); +$image->annotateImage($draw, 1155, 35, 0, 'RP'); +$image->annotateImage($draw, 1155, 615, 0, 'RP'); + +//Set image format +$image->setImageFormat('png'); + +//Output image header +header('Content-type: image/png'); + +//Output image +echo $image; diff --git a/public/facebook/source.png b/public/facebook/source.png new file mode 100644 index 0000000000000000000000000000000000000000..edcdfeb21ecd9b074f443c70d1610e4796dae7ec GIT binary patch literal 3165 zcmeH~TToM16oxl95fEafQc5h*7NrUruZWO9RVpf%R3i$5ghNxnY9ay>laLSu3PTOS zjx7jc7|TFPRXCavCQ7*0Q00yB%FpMBtVZox3-Uc;Azjl)~q$N*ZgbG zw+p|B40U$&a0CE2A37Lv6aZTo0Bgo_GyqQfcx9uAQA6oV}vWdi&oC zepK6Bg5R~Cq*%FvC4aypx%4K92Ve678Nmyq{oZyZeH-(V88f0?mUF#@1-m_m{ABL- z8e=j%)q0&=Z|7S@UM_!JE}~?ajW5j@#R6iAjW=edbtbAN@bL@d#yHU!K~HH-8#=`t zST>nsmbt6uu~{75=*@-l*OElOZqkNS#NB<{mmQVOOQ=$oEruF=aBEZ#uh@%-ER#{) zQCn(VGWcA33)!O7Q#p6oX)5>1aH$L2@0Oo@9irn@M)e~W)v{CX*LpP8U6_%Rah{)k zf+Q$P9q%6oVe|y%fWtr-^`w+NGvHntDRq8ZnFR|70gRFRr)TEERPA9kie=GBmpa6= zHSH5}LA;={wLN?u{_S$t!|o{-*X8-JMl;!IPpsd7DLBU`MDP?JDxFq@2!1mUGfBFr^FsIzJ+UM#z?s~PHZGN~TW}6;Hcm(JB4$Un%Z&PqB3bjb z<8IPTtu62qZTDi8`3HK;#7|QMboydayAyK-Mm5`&=wFNlic*~l=-Kt>Dko{TM3i4lhxbmC`8s7ewYZQ zAhdEvaCE5WM}cSKcCqHGQpXAsfyCr))| zuzwPCeO;xDnW!<>CHLZ}6&&UHE?0An!Xf&AXr<6}VQ)Q)-UB5Xa!-UySHmMHl+fX` zfjeax^-U(V(Dlj##@Ripk?SIo)Ddp-^ANIH5~hM@h84vP3rJsGY>mS1nXTU{AxpE0 z!Z8?Wi~R-mex*fu$1ZDh=Pc)#Me>&Gq1fJ2{0hScqYa{dA@ny`rg literal 0 HcmV?d00001 -- 2.41.1