Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create a Layer on an Image?

How can I create a Layer on an Image, or Image on another Image? because it doesn't let me do that, only layer near the image.

like image 916
Aviran Cohen Avatar asked Nov 14 '22 09:11

Aviran Cohen


1 Answers

You choices come down to two strategies:

1) Composite them on the client, in the browser, by overlaying a mostly-transparent image over the main one. This is probably simpler, and requires html and css skills, but will be the same technique regardless of if the server running Asp.net or not. But it has the drawback that someone who knows what they are doing can pull out the complete image from behind the overlay. This may or may not be something that you care about.

2) Composite them on the server. You can do this in .Net using variations on this technique. It will use more server CPU, but only the finished image is sent to the client. It's more appropriate where the image is different for every user, or you don't want to send the image without the overlay.

like image 93
Anthony Avatar answered Dec 18 '22 06:12

Anthony