Skip to content

Commit

Permalink
Add hook removal image
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Sep 7, 2024
1 parent bba2a14 commit 23972fe
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ release-builds-helper.sh
.kotlin/
.idea/other.xml

scripts/survival_guide/output/
scripts/survival_guide/output/
converted.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion app/src/main/res/raw/guide_survival_chapter_medical.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ Do not attempt to remove a fishhook if it is embedded in the eye.
4. Quickly pull the string, causing the hook to come out the way it went in.
5. Clean the wound and apply antibiotic ointment.

TODO: Add an image
![](file:///android_asset/survival_guide/hook_removal.webp)

### Prevention
- Be careful when handling fishhooks.
Expand Down
2 changes: 1 addition & 1 deletion guides/en-US/guide_survival_chapter_medical.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ Do not attempt to remove a fishhook if it is embedded in the eye.
4. Quickly pull the string, causing the hook to come out the way it went in.
5. Clean the wound and apply antibiotic ointment.

TODO: Add an image
![](file:///android_asset/survival_guide/hook_removal.webp)

### Prevention
- Be careful when handling fishhooks.
Expand Down
13 changes: 13 additions & 0 deletions scripts/convert_to_webp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from PIL import Image
import tkinter as tk
from tkinter import filedialog

# Choose the file
root = tk.Tk()
root.withdraw()
file_path = filedialog.askopenfilename()

image = Image.open(file_path)

image.thumbnail((1000, 300))
image.save("converted.webp", "WEBP", quality=75)

0 comments on commit 23972fe

Please sign in to comment.