Page 1 of 1

Same command produces different results on different servers

Posted: 2019-05-30T02:32:56-07:00
by chowbok
I'm using this command to generate an image:

Code: Select all

convert \( p01.png -bordercolor none -background none -rotate -30 -repage +20-71 \) -layers merge \( p02.png -bordercolor none -background none -rotate -23 -repage -18-24 \) -layers merge \( p03.png -bordercolor none -background none -rotate -15 -repage -11-40 \) -layers merge \( p04.png -bordercolor none -background none -rotate +10 -repage +42+54 \) -layers merge \( p05.png -bordercolor none -background none -rotate +3 -repage +53+60 \) -layers merge \( p06.png -bordercolor none -background none -rotate -5 -repage +50+52 \) -layers merge +repage -flatten +repage -background black \( +clone -shadow 60x4+4+4 \) +swap -background none -flatten -interlace Line output.png
On my laptop, I get this (which is what I want):
Image
But when I run the exact same command on my server, I get this:
Image
Both machines are running Arch Linux with all packages up to date. convert -version gives me "ImageMagick 7.0.8-47 Q16 x86_64" on both machines. As far as I can tell, everything relevant is exactly the same on both machines. I'm completely stumped here. Why am I getting the bad output on my server?

Re: Same command produces different results on different servers

Posted: 2019-05-30T03:38:51-07:00
by snibgo
I suggest you simplify the command to find where the problem is. For example, you have no "-border" so I expect you can remove "-bordercolor none" with no difference. I suggest you create the smallest command you can, using no external files, that shows the problem.

Why do you "-flatten" before creating the shadow?

Re: Same command produces different results on different servers

Posted: 2019-05-30T03:49:29-07:00
by chowbok
I think I've found the issue, actually. I needed to install Intel SDK for OpenCL. Apparently it uses the GPU and needs the drivers for that. I already had them on my laptop, but since my server is headless I never installed them on there.