mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-06 03:05:25 +00:00
fix(record): fail to save metadata
This commit is contained in:
parent
60266a3a8b
commit
955ec76638
@ -160,14 +160,12 @@ def take_screenshot_macos(
|
||||
"sequence": screen_sequences[screen_name],
|
||||
}
|
||||
|
||||
# Write metadata to the temporary PNG file
|
||||
write_image_metadata(temp_filename, metadata)
|
||||
|
||||
# Save as WebP with metadata included
|
||||
webp_filename = os.path.join(
|
||||
base_dir, date, f"screenshot-{timestamp}-of-{screen_name}.webp"
|
||||
)
|
||||
img.save(webp_filename, format="WebP", quality=85, exif=img.info.get("exif"))
|
||||
img.save(webp_filename, format="WebP", quality=85)
|
||||
write_image_metadata(webp_filename, metadata)
|
||||
|
||||
save_screen_sequences(base_dir, screen_sequences, date)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user