Jump to content

PHP Image Problem


widMan

Recommended Posts

The picture is not right. On windows it works well and on linux no.

 

(Windows) (CORRECT)

12321.png

 

(Linux) (INCORRECT)

linn.png

 

Code:

header('Content-Type: image/png;');
$im = @imagecreatefrompng('ph.png');

$im2 = @imagecreatefrompng("assets/images/skins/Skin_170.png");
$im2 = imagescale($im2, 54, 100);
imagecopy($im, $im2, 3, 30, 0, 0, imagesx($im2), imagesy($im2));

$text_color = imagecolorallocate($im, 31,31,31);
$font = 'assets/fonts/arc.otf';

imagepng($im);
imagedestroy($im);
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.