svg - Black background (instead of transparent) after drop shadow in ImageMagick -
I am trying to leave a shadow in the structure of two images: a JPEG / PNG and a SVG vector. Everything works basically with the PNG image, now I am trying with JPEG, I get a black background instead of the expected transparent background.
The command looks like this:
We recommend this JPEG Let's start with: or this PNG: Then we make vector, because it is white Is able to see you raw If not, then here it is with the grid: The real vector is: Then we release the shadow, starting with PNG we get the right (transparent background): But with JPEG, the background is black instead: Dump all the files into a zip Can be loaded: What could be any of its ideas? thank you in advanced! Edit: My version of IM: I on Mac OSX I am developing. The exact problem has been solved !! Snibgo helped me on the ImageMagic Forum. Although we could not understand the difference between our setup and the rest of the people, who do not follow the problem and we have not followed this problem, we have shadowed the order in a more accurate way, In both sources, works well for JPEG and PNG: The full discussion can be found here: < / Div> Convert image.jpeg -background white - flatten (any vector.svg of background-) --compose CopyOpacity -Gravity Center -composite \ (\ clone-background \ # 111 -Shadow 80x5 \ +5 \ +5 \) -background none -define DSTover-Flaton result_from_jpeg PGG
version: Image Magic 6.8.8- 9 Q16 x86_64 2014-03-28 /www.imagemagick.org Copyright: Copyright (c) 1999-2014 Features of ImageMagic Studio LLC: DPC Modules Representative: bzlib freetype jng jpeg lcms ltdl png tiff xml zlib
image.jpeg-background white-flatten \ \ (-background no vector. Svg \) Change \ -compose copyOpacity - Gravity center -composite \ \ (+ clone-background \ # 111 -shadow 80x5 + 5 + 5 \) + swap-backgram No one -classes -cloud over-players \ # this is the new correct_output.png
Comments
Post a Comment