4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: satine88 on June 15, 2010, 10:29:07 PM
-
Hello
Is it possible to make transparent images
I added. Png but a black background appears when I add on 4images:
(http://nsa14.casimages.com/img/2010/06/15//10061510280866464.jpg)
-
are they being resized? if they are, what graphic library do you use? (ImageMagic, GD or NetPBM)
-
are they being resized? if they are, what graphic library do you use? (ImageMagic, GD or NetPBM)
Yes, GD :)
-
There is a way fix this, but I'll need a sample image to play with ;)
-
There is a way fix this, but I'll need a sample image to play with ;)
No problem
Website :
http://icones.fond-ecran-gratuit.biz
Image
http://icones.fond-ecran-gratuit.biz/data/media/10/My_Documents.png
(Http://icones.fond-ecran-gratuit.biz/img-my-documents-2358.htm)
Thumb
http://icones.fond-ecran-gratuit.biz/data/thumbnails/10/My_Documents.png
(Http://icones.fond-ecran-gratuit.biz/cat-dossiers-10.htm)
Thanks
:)
-
In includes/image_utils.php find:
$thumb = imagecreatetruecolor($width, $height);
Insert below:
imagealphablending($thumb, false);
imagesavealpha($thumb, true);
-
I deleted all the pictures, then I
create new every time I had this message :
Warning: imagesavealpha (): Supplied argument Is Not
a valid Image resource in
/ Homez.93/fondecra/www/icones/includes/image_utils.p
hp on line 75
Code:
$types = array(1 => "gif", 2 => "jpeg", 3 => "png");
if ($convert_options['convert_gd2']) {
imagealphablending($thumb, false);
imagesavealpha($thumb, true);
$thumb = imagecreatetruecolor($width, $height);
}
else {
$thumb = imagecreate($width, $height);
}
Thanks
-
yeah, well, pay attention to the instructions ;)
Insert below not above
Should work once you fix it :)
-
yeah, well, pay attention to the instructions ;)
Insert below not above
Should work once you fix it :)
LOL
Sorry
To thank you for your help, the problem is solved (http://icones.fond-ecran-gratuit.biz/)