Ik ben bezig onze logo in alle foto's te zetten die we uploaden, nu lukt dat aardig, alleen wil ik het logo er transparant inzetten. Echter dit levert wat problemen op.


Zo als je ziet, het wordt niet helemaal transparant, terwijl ik 1 kleur, #141543 als achtergrond kleur heb staan.
Dit is mijn code:


Zo als je ziet, het wordt niet helemaal transparant, terwijl ik 1 kleur, #141543 als achtergrond kleur heb staan.
Dit is mijn code:
PHP:
1
2
3
4
5
6
| $logoImg = ImageCreateFromJpeg("images/logo_foto.jpg"); $color_id = imagecolorclosest($logoImg, 20, 21, 67); imagecolortransparent($logoImg, $color_id); $thmbImg = imageCreate(200, 100); imageCopy($thmbImg, $logoImg, 0, 0, 0, 0, 100, 66); imageJpeg($thmbImg, $filenaam, 80); |
"Als je het kan bedenken, kan het gemaakt worden" Parcye - 14 januari 2002