简体   繁体   English

ImageMagick不在Windows上输出反射

[英]Imagemagick not outputting reflection on windows

I am trying to do the same as described here http://www.imagemagick.org/Usage/advanced/#reflections 我正在尝试执行此处所述的相同操作http://www.imagemagick.org/Usage/advanced/#reflections

I am using imagemagick on windows and the command I am using is like this - 我在Windows上使用imagemagick,而我正在使用的命令是这样的-

convert test3.jpg -alpha on -virtual-pixel transparent -clone 0 +distort Perspective "0,0,100,50 0,394,100,344 300,394,300,394 394,0,394,0" -clone 0  -channel A -evaluate multiply .35 +channel +distort Perspective "0,0,100,-50  0,394,100,344  300,394,300,394  394,0,394,0" -delete 0 +swap -background none  -layers merge +filter  -size "594x500^!" xc:none +swap -gravity North -geometry +0+5 -composite  reflect_distort_new.jpg

The actual image is 实际的图像是

在此处输入图片说明

The result I am getting is like this - 我得到的结果是这样的-

在此处输入图片说明

I was wondering if any one can help me fixing the following issues - 我想知道是否有人可以帮助我解决以下问题-

  1. I want to add a reflection as explained in the example, but it does not appear with my command line. 我想按照示例中的说明添加反射,但是它不会与命令行一起显示。 I have removed parenthesis from the -clone command as it was giving error on windows. 我从-clone命令中删除了括号,因为它在Windows上给出了错误。
  2. How to remove the black background being added there? 如何删除在那里添加的黑色背景?
  3. How to apply antialising as there are edges on the resultant image. 由于结果图像上有边缘,因此如何应用抗锯齿。

Ah Well, after trying 1000+ times, I got it correct - 嗯,尝试了1000多次之后,我没错-

convert magCover1.png -alpha on   -virtual-pixel transparent ^
  ( +clone -flip -channel A -evaluate multiply .35 +channel ) -append ^
  +distort Perspective "0,0,200,100 0,788,200,788 600,788,600,850 788,0,740,50" ^
  -gravity North  -crop "1094x1000+0-5^!" ^
  -background none -compose Over -flatten -transparent white  reflect_distort.png

I get the following result - 我得到以下结果-

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM