Answer the question
In order to leave comments, you need to log in
Using CSS/JS to match an image with a solid background?
Of course, you can process each image in Photoshop / Gimp, make a gradient to the desired background color. But maybe with the help of CSS and/or JavaScript it is possible to smoothly blend the image with a solid background?
Answer the question
In order to leave comments, you need to log in
If I understand you correctly, you need something like this effect.
Offhand, there are three obvious solutions:
- a script that will produce the finished image. Simple and effective.
- js/css box-shadow with inset. There are restrictions.
js/svg. Extremely limited use.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question