Spaces:
Runtime error
Runtime error
Update texture_transfer.py
Browse files- texture_transfer.py +1 -1
texture_transfer.py
CHANGED
|
@@ -22,7 +22,7 @@ def create_layover(background_image, layer_image, opacity):
|
|
| 22 |
|
| 23 |
|
| 24 |
def create_image_tile(input_patch, x_dim, y_dim):
|
| 25 |
-
|
| 26 |
input_image = input_patch.convert("RGB")
|
| 27 |
width, height = input_image.size
|
| 28 |
output_image = Image.new("RGB", (x_dim, y_dim))
|
|
|
|
| 22 |
|
| 23 |
|
| 24 |
def create_image_tile(input_patch, x_dim, y_dim):
|
| 25 |
+
input_image = Image.open(input_patch)
|
| 26 |
input_image = input_patch.convert("RGB")
|
| 27 |
width, height = input_image.size
|
| 28 |
output_image = Image.new("RGB", (x_dim, y_dim))
|