You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
321 B
Python
13 lines
321 B
Python
2 weeks ago
|
# Re-import necessary libraries and re-run the code to process the new image.
|
||
|
|
||
|
from PIL import Image
|
||
|
|
||
|
# Load the new image
|
||
|
image_path = 'waldemon.webp' #Change Path OBV
|
||
|
image = Image.open(image_path)
|
||
|
|
||
|
# Save the output with a transparent background
|
||
|
output_path = f'{image_path[:-5]}.jpg'
|
||
|
image.save(output_path, "JPEG")
|
||
|
|