Skip to content

Commit

Permalink
Publishing to gh-pages (publish.sh)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedKari committed Dec 11, 2024
1 parent a59e664 commit 6a28c12
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions posts/princeton/compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def main():
# Process each image
from PIL import Image
for img_path in image_files:
# Create compressed folder next to the image
compressed_dir = img_path.parent / 'compressed'
compressed_dir.mkdir(exist_ok=True)
# Create compressed folder next to .raw directory
compressed_dir = img_path.parent.parent / 'compressed'
compressed_dir.mkdir(parents=True, exist_ok=True)

# Open image and get EXIF data
img = Image.open(img_path)
Expand Down
2 changes: 2 additions & 0 deletions posts/princeton/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ <h1 id="campus-life">Campus life</h1>
Attending other department&rsquo;s talks (here: <a href="https://hellenic.princeton.edu/events/2024/lecture-tomos-evans-%E2%80%9Cadvocating-greece%E2%80%99s-liberation-seventeenth-century-john-milton-and">Tomos Evans</a>&rsquo;s lecture with respondent Anthony Grafton)</p>
<p><img src="campus-life/compressed/IMG_3592.jpg" alt="Hosting talks">
Hosting talks (here: <a href="https://www.princeton.edu/events/2024/talk-dr-andreas-fender-augmenting-space-and-time">Andreas Fender</a> on Augmenting Space &amp; Time)</p>
<p><img src="campus-life/compressed/MoKari_102924_0014-crop.jpg" alt="Presidential Postdoctoral Research Fellowship Photo Session (Sameer A. Khan/Fotobuddy)">
Presidential Postdoctoral Research Fellowship Photo Session (Sameer A. Khan/Fotobuddy)</p>
<p><img src="campus-life/compressed/IMG_3983.jpg" alt="Campus (wild)life.">
Campus (wild)life.</p>
<p><img src="campus-life/compressed/16470CB8-DC2E-49F9-83FB-4EAF5B664E2B_1_105_c.jpg" alt="Faculty Salons">
Expand Down

0 comments on commit 6a28c12

Please sign in to comment.