widMan Posted October 1, 2017 Share Posted October 1, 2017 The picture is not right. On windows it works well and on linux no. (Windows) (CORRECT) (Linux) (INCORRECT) 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 More sharing options...
requinix Posted October 1, 2017 Share Posted October 1, 2017 imagecopy() isn't actually that good. Try imagecopyresampled(). Link to comment Share on other sites More sharing options...
widMan Posted October 4, 2017 Author Share Posted October 4, 2017 imagecopy() isn't actually that good. Try imagecopyresampled(). Don't work. The image not show. Link to comment Share on other sites More sharing options...
gizmola Posted October 4, 2017 Share Posted October 4, 2017 If you remove the @ symbols do you get errors? What are the versions of all the gd components and packages. What distro and version of linux are you using? Link to comment Share on other sites More sharing options...
widMan Posted October 5, 2017 Author Share Posted October 5, 2017 Solved with (imagecopyresized) Closed. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.