Skip to main content
Participating Frequently
February 19, 2024
Question

AI for background Images (Sunglasses main image)

  • February 19, 2024
  • 2 replies
  • 1120 views

Hi, 

 

Can anybody let me know where to start using AI to generate a backround image with sunglasses being the main product in the foreground?

 

Sample image below, would be good to put some backgound options such as:

 

1. Ski Resort / Mountains

2. Road Cycling, Tour de France backgrounds etc

3. Tennis / Padel (A Court in the background)

 

 

 

 

2 replies

George_F
Community Expert
Community Expert
February 19, 2024

Not exactly the question you asked, but if AI doesn't produce the results you are hoping for this could also be accomplished with a stock photo.  Its not quite a one click solution, but also not too difficult in my opinion.  It's nice to have alternatives 🙂

George F, Photographer & Forum Volunteer
Participating Frequently
February 20, 2024

Thanks George, I do have quite a few suitable stock photos.

 

How would I go about putting the sunglasses image on top of a snow photo for example? The image is a jpg not png so I'd have the white background of the sunglasses picture.

 

Then there are advanced things like reflections in the lenses etc but if I get the basics first (how to layer the sunglasses photo on top of a ski resort photo) and then I'll learn from there! Thank you

George_F
Community Expert
Community Expert
February 20, 2024

Removing the white background is fairly easy.  As long as the sunglasses are placed over another layer the transparency isn't an issue.  If you are working with layers, you'll be converting to another format anyway.  It's just a matter of selecting the white background and either masking out or deleting the background.

 

The way I've approached the dilemma of making the product appear it's sitting in the snow/leaves/dirt in the past is to mask out a tiny bit more of the product at the bottom to make it appear it's sitting in the snow, or to clone a bit of snow/leaves/dirt around the bottom.  You can add some shading or shadowing if you'd like to add to the realism.

 

I think with these sorts of composites it's important to not overthink it, I've never thought the intention was hyper realism for product shots.

 

Cheers!

George F, Photographer & Forum Volunteer
Kevin Stohlmeyer
Community Expert
Community Expert
February 19, 2024

First you need to expand your canvas to allow for a larger generative result.

I duplicated the glasses onto a second layer masked to retain the product.

Then on the original layer I selected the background, with a 2px bleed into the subject (using Select>Modify>Expand) and the prompt was "Snowy foreground with ski hill in the distance"

 

Participating Frequently
February 19, 2024

That's fantastic and quite literally what I want to do. 

 

I'm limited (but learning) so I'll have a go and may come back to you with some more questions or a for dummies guide!! Hugely appreciated