[solved] How to drop shadow for a transparent PNG imported?

Post questions on how to use or achieve an effect in Inkscape.
etrader
Posts: 25
Joined: Thu Mar 14, 2013 11:45 pm

[solved] How to drop shadow for a transparent PNG imported?

Postby etrader » Tue Apr 26, 2016 11:50 pm

I have imported a PNG image with transparent background. If I drop shadow from Inkscape filter, the shadow is for the visible object. Everything is OK as long as the shadow is within the frame of the PNG image.

One lame solution is to have a PNG image with large empty area around the object, but what is the best solution to drop shadow beyond PNG image frame.
Attachments
shadow.svg
(113.41 KiB) Downloaded 197 times

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: How to drop shadow for a transparent PNG imported?

Postby Polygon » Wed Apr 27, 2016 1:10 am

I think you have to extend the "dimension" of your drop shadow filter settings, your image plus shadow needs to fit into paper size and then export to PNG:
AlphaShadow.png
AlphaShadow.png (105.17 KiB) Viewed 1562 times


Cheers
P.

etrader
Posts: 25
Joined: Thu Mar 14, 2013 11:45 pm

Re: How to drop shadow for a transparent PNG imported?

Postby etrader » Wed Apr 27, 2016 5:19 am

I still cannot produce what you've posted. Could you please upload your svg file. What do you mean by "dimension". Drop shadow has one parameter namely offset. The problem happen when the offset is larger than the distance of the png object from the edge of the png.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: How to drop shadow for a transparent PNG imported?

Postby Lazur » Wed Apr 27, 2016 6:12 am

Lame or not, that is often suggested.
Other workaround is setting a larger filtered area manually in the filter editor&general filter settings.

Image

etrader
Posts: 25
Joined: Thu Mar 14, 2013 11:45 pm

Re: How to drop shadow for a transparent PNG imported?

Postby etrader » Wed Apr 27, 2016 6:27 am

WOW, I got it. Silly of me.

I missed the general filter editor. I simply tried it from the dialogue box of the Drop Shadow.

It's not lame at all. It totally resolved my problem. Thanks.

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: How to drop shadow for a transparent PNG imported?

Postby Polygon » Wed Apr 27, 2016 7:24 am

etrader wrote:I missed the general filter editor.

That the dimensions of the filter is not updating dynamically is kinda silly. :roll:

Cheers
P.


Return to “Help with using Inkscape”