Skip to content

Commit

Permalink
Change screenshot format to jpg
Browse files Browse the repository at this point in the history
  • Loading branch information
user authored and user committed Dec 25, 2024
1 parent ffa4618 commit e526c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/screenshot_to_file_and_clipboard.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash

# Define the file path for saving the screenshot
FILENAME="$HOME/Pictures/screenshot_$(date +%Y-%m-%d_%H-%M-%S).png"
FILENAME="$HOME/Pictures/screenshot_$(date +%Y-%m-%d_%H-%M-%S).jpg"

# Take a screenshot interactively (-i) and save it to a file
screencapture -i "$FILENAME"
screencapture -t jpg -i "$FILENAME"

# Use AppleScript to copy the image to the clipboard
osascript <<EOF
Expand Down

0 comments on commit e526c41

Please sign in to comment.