From ec01340aa7906ad49eba22f93f1889f5b02cf526 Mon Sep 17 00:00:00 2001 From: MEUNIER Thibaud Date: Mon, 6 Jan 2020 14:43:25 +0100 Subject: [PATCH] ajout des chroniques dans about.php --- about.php | 4 ++-- images/logo.php | 17 +++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/about.php b/about.php index db72564..027c4f9 100644 --- a/about.php +++ b/about.php @@ -159,7 +159,7 @@

This site is a hobby.
It's also a testing place where i can do things that are impossible at work.

I like surfing and sailing on the ocean. But during longs winter nights, computing is fun. I'm interested into cryptocurrencies, computationnal art, datavisualisation. I know that 42 is the answer to the Life, Universe and Everything Else. As Eto Demerzel said to me, the Seldon's Plan will save the Galaxy. My favorites books are the House of leaves, the Necronomicron and the DarkHold. I also know that great power comes with great responsibility. I'm still in the search of Captain Zero, because the Truth is out there.

-

.I'm also really astonished by Universal Numbers, aka Disjunctives Sequences. Thinking that a single number can contain every others, that's a great mystery. So I'm trying to write the chronicles of these numbers (in french)

+

.I'm also really astonished by Universal Numbers, aka Disjunctives Sequences. Thinking that a single number can contain every others, that's a great mystery. So I'm trying to write the Chronicles of these numbers (in french)

- avatar dragon gargoyle + avatar dragon gargoyle
diff --git a/images/logo.php b/images/logo.php index 3825fa1..d8b2098 100644 --- a/images/logo.php +++ b/images/logo.php @@ -13,17 +13,17 @@ $height = imagesy($block_image); $img=imagecreatetruecolor( $width, $height ); // enable alpha blending on the destination image. -imagealphablending($img, true); +imagealphablending($img, false); +imagesavealpha($img,true); + // Allocate a transparent color and fill the new image with it. // Without this the image will have a black background instead of being transparent. -$transparent = imagecolorallocatealpha( $img, 255, 255, 255, 127 ); -imagefill( $img, 0, 0, $transparent ); +//$transparent = imagecolorallocatealpha( $img, 255, 255, 255, 127 ); +//imagefill( $img, 0, 0, $transparent ); // copy the thumbnail into the output image. -imagecopyresampled($img,$block_image, 0, 0, 0, 0, $width, $height, $width, $height ); - -imagedestroy($block_image); +// imagecopyresampled($img,$block_image, 0, 0, 0, 0, $width, $height, $width, $height ); if ($alea < 1000) { @@ -37,13 +37,13 @@ if ($alea < 1000) $superpose = @imagecreatefrompng($files[0]); //imagecopymerge($img, $superpose, 0, 0, 0, 0, $width, $height, 50); + imagecopyresampled($img,$superpose, 0, 0, 0, 0, $width, $height, imagesx($superpose), imagesy($superpose)); imagedestroy($superpose); } -imagealphablending($img, false); -imagesavealpha($img,true); +imagecopymerge($img, $block_image, 0, 0, 0, 0, $width, $height, 45); // --- // --- envoyer l'image au navigateur @@ -52,5 +52,6 @@ header("Content-Type: image/png"); imagepng($img); imagedestroy($img); +imagedestroy($block_image); ?>