DEV Community

Discussion on: NFT images generator using Python Jupyter Notebook

Collapse
 
doodler profile image
adireksa

actually figured out the issue.
i couldnt use this


im1 = Image.open(f'./layers/backgrounds/{background_files[item["Background"]]}.jpg').convert('RGBA')


instead of ./ in the fstring formatting i had to put the entire file location. any way i can shorten that?