Jump to content

Imagemagick, cant get it to work right ...


Liquix

Recommended Posts

Im using this code:
[code]<?php
$tmp_img = "URL to image";
$tmp_img2 = "tmp-file save spot";
$wmorig= "icon wich is gonna get stretched over the mask";
$wmdest_y = "Height of image";
$wmdest_x = "Width of image";
$wmtarget = "Where the result is saved";

exec("convert " . $tmp_img . " -fill white -colorize 100% -background xc:'#FF00FFFF' -flatten " . $tmp_img2 . "");
exec("convert " . $tmp_img2 . " -size " . $wmdest_x . "x" . $wmdest_y . " tile:'" . $wmorig . "' -compose Multiply -composite " . $wmtarget . "");
?>[/code]






Im trying to do like this:
[img]http://www.habbopalace.no/international/pic1.png.gif[/img] [b] [color=red][size=24pt]->[/size][/color][/b] [img]http://www.habbopalace.no/international/pic3.png.gif[/img] [b][color=red][size=24pt]+[/size][/color][/b] [img]http://www.habbopalace.no/international/icon-gadget2.gif[/img] [b][color=red][size=24pt]->[/size][/color][/b] [img]http://www.habbopalace.no/international/pic4.png.gif[/img]

Problem is that it doesnt work at all =p Can someone edit my code to work?
Link to comment
https://forums.phpfreaks.com/topic/33562-imagemagick-cant-get-it-to-work-right/
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.