mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
chore: sonar adjustments
This commit is contained in:
parent
b74035979f
commit
ea90b49604
5 changed files with 6 additions and 6 deletions
|
@ -15,8 +15,8 @@ class ProfileImageProcessor:
|
|||
mime_type = image.get_format_mimetype()
|
||||
return image_path, mime_type
|
||||
else:
|
||||
newUUID = str(uuid.uuid4())
|
||||
new_image_path = os.path.join(tempfile.gettempdir(), newUUID) + ".webp"
|
||||
new_uuid = str(uuid.uuid4())
|
||||
new_image_path = os.path.join(tempfile.gettempdir(), new_uuid) + ".webp"
|
||||
image.save(new_image_path)
|
||||
|
||||
new_image = Image.open(new_image_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue