generative-art-nft icon indicating copy to clipboard operation
generative-art-nft copied to clipboard

Code creates silhouette instead of the image

Open NHaiby opened this issue 2 years ago • 3 comments

Generating the images create some of the images as silhouettes of the layered images instead of the image with all the layers. How is that possible ? How can one fix this ?

NHaiby avatar Mar 29 '22 22:03 NHaiby

This is a common issue. Make sure your trait images satisfy the following:

  1. They are all of type PNG.
  2. They have the same dimension and resolution.
  3. Every trait image should have a transparent background apart from the background layer (or layer 1).

rounakbanik avatar Mar 30 '22 08:03 rounakbanik

Thanks ! They all have the above. If I remove the background layer than it works but with the background layer it seems like it is putting it sometimes on the top with all the layers behind somehow and creating a silhouette not sure why.

NHaiby avatar Mar 30 '22 18:03 NHaiby

Did you make sure the background layer is the first layer (i.e the bottom most layer)?

rounakbanik avatar Mar 31 '22 13:03 rounakbanik