How to apply shadow to all side of image

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
durga1208
Posts: 14
Joined: 2016-05-05T02:00:57-07:00
Authentication code: 1151

Re: How to apply shadow to all side of image

Post by durga1208 »

Thank you. Shadow working fine.

Is there any way to preview image before writing to disk. Also, can we make MagickImageCollection class as serializable so that we can store collection and use instead of reading pdf every request.
durga1208
Posts: 14
Joined: 2016-05-05T02:00:57-07:00
Authentication code: 1151

Re: How to apply shadow to all side of image

Post by durga1208 »

+-shadow.Shadow(0, 0, 5, (Percentage)90, backgroundColor); // -background black -shadow 100x5+0+0

taking approximately 28 Seconds. It is too high can you please help us to reduce time.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: How to apply shadow to all side of image

Post by dlemstra »

Are you working on a really huge image? It makes no sense that this operation takes 28 seconds.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
durga1208
Posts: 14
Joined: 2016-05-05T02:00:57-07:00
Authentication code: 1151

Re: How to apply shadow to all side of image

Post by durga1208 »

No..am using same pdf which shared in previously.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: How to apply shadow to all side of image

Post by dlemstra »

Can you strip down your code and create an example that I can use to reproduce the problem? You can share it one something like DropBox/OneDrive.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
durga1208
Posts: 14
Joined: 2016-05-05T02:00:57-07:00
Authentication code: 1151

Re: How to apply shadow to all side of image

Post by durga1208 »

durga1208
Posts: 14
Joined: 2016-05-05T02:00:57-07:00
Authentication code: 1151

Re: How to apply shadow to all side of image

Post by durga1208 »

did you get a chance to review code.
durga1208
Posts: 14
Joined: 2016-05-05T02:00:57-07:00
Authentication code: 1151

Re: How to apply shadow to all side of image

Post by durga1208 »

Can you please help us on shadow method.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: How to apply shadow to all side of image

Post by dlemstra »

I am working on other things at the moment. I will get back to this topic at a later point. I don't know when that will happen.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: How to apply shadow to all side of image

Post by dlemstra »

You are calling Shadow with a big sigma and that seems to take quite long. And you are now also using the Rotate method that is rather slow. It seems that this can only be changed if we find a way to improve the performance of Shadow and Rotate.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
durga1208
Posts: 14
Joined: 2016-05-05T02:00:57-07:00
Authentication code: 1151

Re: How to apply shadow to all side of image

Post by durga1208 »

any improvement on shadow?
durga1208
Posts: 14
Joined: 2016-05-05T02:00:57-07:00
Authentication code: 1151

Re: How to apply shadow to all side of image

Post by durga1208 »

any update on shadow?
Post Reply