Skip to content
Snippets Groups Projects
Verified Commit 5c88bf98 authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

download images in PNG

parent 84bd1e94
No related branches found
No related tags found
1 merge request!2Implement worker
Pipeline #81796 passed
...@@ -46,7 +46,7 @@ def download_image(element, folder: Path): ...@@ -46,7 +46,7 @@ def download_image(element, folder: Path):
try: try:
image = iio.imread(build_image_url(element)) image = iio.imread(build_image_url(element))
cv2.imwrite( cv2.imwrite(
str(folder / f"{element.image_id}.jpg"), str(folder / f"{element.image_id}.png"),
cv2.cvtColor(image, cv2.COLOR_BGR2RGB), cv2.cvtColor(image, cv2.COLOR_BGR2RGB),
) )
break break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment