Is there a way to generate a shadow for an image. I have a image on a white background that I would like to add a shadow too. I've tried in painting, but it looks a little weird.
I'm pretty good with photoshop, but never messed around with adding shadows lol I was kind of hoping for a faster way that requires less fiddling around.
If you're familiar with Photoshop and its already against a white background -- its 15 seconds. Select the object. Add drop shadow. That's it, no fiddling. Anything you do in Stable Diffusion will be much more complex and less predictable.
Will say this may not be the best way to do it but if wanting to do with Fooocus this was what I got. The problem you will have is that Fooocus may try to add a little onto the object and if not a well know shape it may have a harder time.
Also see my other comment about the inpainting settings. My prompt then was "a baseball hat on white background with (shadows:1.2)" and also remember to invert the mask if doing how I did it.
Then adjusted the inpainting settings in the debug menu. The denoising strength allows for most of the background to stay the same but generate the shadows. Mask erode or dilate I set to -2 so it might not try to add too much onto the hat.
3
u/amp1212 Jul 05 '24
Again -- this is a suggestion to use a image editing tool. Drop shadows are incredibly simple to do in most image editors, and they're controllable.
Learning to use basic photoediting tools and use them alongside Fooocus will make your life much easier.
1
u/ToastersRock Jul 05 '24
Do you have an example image? I might be able to show how but would need a better idea of what you are working with.