+swap doesn't seem to be working?
Posted: 2017-04-20T11:17:27-07:00
Hi!
I'm using the latest version of ImageMagick and trying to add a simple shadow effect to a text. However, even when I copy the examples straight from the official website, it seems that the created layers won't swap (when they're generated as two files each looks correct, but not together).
I believe this might stem in my lack of understanding of how to treat IM syntax when it's called through PHP.
I'm trying to run this code:
However, the result looks like this, despite the example page stating something entirely different. And I'm not talking about the font.
My guess would be that created image layers don't swap for some reason. What am I doing wrong? :<
I'm using the latest version of ImageMagick and trying to add a simple shadow effect to a text. However, even when I copy the examples straight from the official website, it seems that the created layers won't swap (when they're generated as two files each looks correct, but not together).
I believe this might stem in my lack of understanding of how to treat IM syntax when it's called through PHP.
I'm trying to run this code:
Code: Select all
exec("magick convert -background none -fill white -font Candice -pointsize 48 label:A -trim \( +clone -background black -shadow 100x3+0+0 -channel A -level 0,50% +channel \) +swap +repage -gravity center -composite \"{$sourceDir}{$output}\" ");
My guess would be that created image layers don't swap for some reason. What am I doing wrong? :<