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 » 2016-06-01T09:15:56-07:00

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 » 2016-06-12T10:04:15-07:00

+-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: 1587
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 » 2016-06-13T12:34:36-07:00

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 » 2016-06-14T07:28:17-07:00

No..am using same pdf which shared in previously.

User avatar
dlemstra
Posts: 1587
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 » 2016-06-14T13:25:15-07:00

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 » 2016-06-14T22:26:38-07:00


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 » 2016-06-18T04:13:02-07:00

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 » 2016-06-20T04:28:40-07:00

Can you please help us on shadow method.

User avatar
dlemstra
Posts: 1587
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 » 2016-06-20T05:46:53-07:00

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: 1587
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 » 2016-06-24T13:55:57-07:00

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 » 2016-07-11T06:58:31-07:00

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 » 2016-07-16T00:50:39-07:00

any update on shadow?

Post Reply