danielrosehill commited on
Commit
c2d451f
·
1 Parent(s): 92e9c08
This view is limited to 50 files because it contains too many changes.   See raw diff
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ new-images/
convert-to-webp.sh ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Script to convert all existing PNG images to WebP format
4
+ # Maintains the same numbering scheme
5
+
6
+ set -e
7
+
8
+ IMAGES_DIR="./images"
9
+
10
+ # Check if directory exists
11
+ if [ ! -d "$IMAGES_DIR" ]; then
12
+ echo "Error: $IMAGES_DIR directory not found"
13
+ exit 1
14
+ fi
15
+
16
+ # Check for conversion tool
17
+ if ! command -v cwebp &> /dev/null && ! command -v convert &> /dev/null; then
18
+ echo "Error: Neither cwebp nor ImageMagick (convert) found. Please install one of them."
19
+ exit 1
20
+ fi
21
+
22
+ echo "Converting all PNG images to WebP format..."
23
+
24
+ CONVERTED=0
25
+ SKIPPED=0
26
+
27
+ for img in "$IMAGES_DIR"/*.png; do
28
+ # Skip if no PNG files found
29
+ [ -f "$img" ] || continue
30
+
31
+ # Get filename without extension
32
+ filename=$(basename "$img" .png)
33
+ output="${IMAGES_DIR}/${filename}.webp"
34
+
35
+ # Skip if WebP already exists
36
+ if [ -f "$output" ]; then
37
+ echo "Skipping $filename.png (WebP already exists)"
38
+ SKIPPED=$((SKIPPED + 1))
39
+ continue
40
+ fi
41
+
42
+ echo "Converting: $filename.png -> $filename.webp"
43
+
44
+ # Convert to WebP
45
+ if command -v cwebp &> /dev/null; then
46
+ cwebp -q 85 "$img" -o "$output" 2>/dev/null
47
+ else
48
+ convert "$img" -quality 85 "$output"
49
+ fi
50
+
51
+ # Remove original PNG after successful conversion
52
+ if [ -f "$output" ]; then
53
+ rm "$img"
54
+ CONVERTED=$((CONVERTED + 1))
55
+ else
56
+ echo "Error: Failed to convert $filename.png"
57
+ fi
58
+ done
59
+
60
+ echo ""
61
+ echo "Conversion complete!"
62
+ echo "Images converted: $CONVERTED"
63
+ echo "Images skipped: $SKIPPED"
images/{1.png → 1.webp} RENAMED
File without changes
images/{10.png → 10.webp} RENAMED
File without changes
images/{102.png → 100.webp} RENAMED
File without changes
images/{104.png → 101.webp} RENAMED
File without changes
images/{100.png → 102.webp} RENAMED
File without changes
images/103.png DELETED

Git LFS Details

  • SHA256: d3328c12a912c616212aa101e4e0766ff44828e15847b699bd5056a025d0d206
  • Pointer size: 132 Bytes
  • Size of remote file: 1 MB
images/{101.png → 103.webp} RENAMED
File without changes
images/104.webp ADDED

Git LFS Details

  • SHA256: fff69a60f2cabb8d1cbde7c4c7ec2119e78643b13d58fa7324e2d1f607c06475
  • Pointer size: 131 Bytes
  • Size of remote file: 475 kB
images/105.png DELETED

Git LFS Details

  • SHA256: 4d358038a51d5d4dab7c0dfd14ec8b16ab952ab22012181d6092597c38c5e073
  • Pointer size: 132 Bytes
  • Size of remote file: 1.06 MB
images/105.webp ADDED

Git LFS Details

  • SHA256: 63403833ba1faa92c55fdd7c0f3558cb6dbb33c96babced97a3266e523d8b555
  • Pointer size: 131 Bytes
  • Size of remote file: 806 kB
images/106.png DELETED

Git LFS Details

  • SHA256: ec1d64683116131053061374df7c952e00047d0489d22a4d4af6cf6f8503aacc
  • Pointer size: 131 Bytes
  • Size of remote file: 453 kB
images/106.webp ADDED

Git LFS Details

  • SHA256: 0623faf4d4b10a9b951377099952ae7acbe5af860b296d1a9da72b2bc48eb404
  • Pointer size: 131 Bytes
  • Size of remote file: 428 kB
images/107.png DELETED

Git LFS Details

  • SHA256: 34eebd725e6262ac9ebc1e3fbcc25dae5f0752ce5ee0b3496b57efe40a1f2dde
  • Pointer size: 131 Bytes
  • Size of remote file: 768 kB
images/107.webp ADDED

Git LFS Details

  • SHA256: 711e2775cfd218c0ae6dce3b68fe3c9dde70f1844406054a815b8804c10558d3
  • Pointer size: 131 Bytes
  • Size of remote file: 640 kB
images/108.png DELETED

Git LFS Details

  • SHA256: 9c60a964d5afc111681c7ef0e2794343302407019d6a08ca8dd5820e5d6ff811
  • Pointer size: 132 Bytes
  • Size of remote file: 1.37 MB
images/108.webp ADDED

Git LFS Details

  • SHA256: 8e0cea5f9f1639721f4b5e5c3a2d4df51f8195b904e04829ee95627282bb6665
  • Pointer size: 131 Bytes
  • Size of remote file: 994 kB
images/109.png DELETED

Git LFS Details

  • SHA256: 061bfaa11742d7fc9146e11658d5395cbb7727feecbed8a2736a6ee6d6592e93
  • Pointer size: 131 Bytes
  • Size of remote file: 496 kB
images/109.webp ADDED

Git LFS Details

  • SHA256: 7c3875ee688e12e33b61f59d5390f83f18a04887a5e6628e51590e037d9638cb
  • Pointer size: 131 Bytes
  • Size of remote file: 488 kB
images/11.png DELETED

Git LFS Details

  • SHA256: e49e8282e78eff3e93b55198ac719f5ff3691050c3570d0f967efb97e8bb568b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.41 MB
images/11.webp ADDED

Git LFS Details

  • SHA256: 19b5d2187cd3053c85ffb684f62b11f5a9aa10963748ca99e36ebe1125681624
  • Pointer size: 132 Bytes
  • Size of remote file: 1.36 MB
images/110.png DELETED

Git LFS Details

  • SHA256: 60546f940225126c9633ddf779060df91786767d02147c763893507e87f9fb84
  • Pointer size: 131 Bytes
  • Size of remote file: 552 kB
images/110.webp ADDED

Git LFS Details

  • SHA256: 748345149f3328ee4553824f602648d43ac62d13a6f4416a623999dc88a3746a
  • Pointer size: 131 Bytes
  • Size of remote file: 548 kB
images/111.png DELETED

Git LFS Details

  • SHA256: 7802f02f45c36a9384c707ce5fb75d72ef88a08258e79d90f0b4be6407bedeb0
  • Pointer size: 131 Bytes
  • Size of remote file: 323 kB
images/111.webp ADDED

Git LFS Details

  • SHA256: 38dbed063376b32dce8fd489171bc5f356b1e5e1fe9d32d2adbb90d71b548ced
  • Pointer size: 131 Bytes
  • Size of remote file: 286 kB
images/112.png DELETED

Git LFS Details

  • SHA256: a71b3573bebe7347e15eae78b961e8ecb2d1ce67b3e2158e79f3acdc69960a35
  • Pointer size: 131 Bytes
  • Size of remote file: 803 kB
images/112.webp ADDED

Git LFS Details

  • SHA256: 4a42792bc93ba0e5be0138dbe4cbd986058922985e9e91657a3cc697cfe5e7e8
  • Pointer size: 131 Bytes
  • Size of remote file: 673 kB
images/113.png DELETED

Git LFS Details

  • SHA256: 7c1629b79232c856f789088b6fd5cd50133b84f49d99e6ddcd9c0cc9ff06889b
  • Pointer size: 131 Bytes
  • Size of remote file: 785 kB
images/113.webp ADDED

Git LFS Details

  • SHA256: f5d7d73f49f17baccc47e7b9f3be5ab097e1ec6ce2bab558ce124eeb43a98e7f
  • Pointer size: 131 Bytes
  • Size of remote file: 647 kB
images/114.png DELETED

Git LFS Details

  • SHA256: e3a82fccd9798810e71c14b914c6a926f60586b303bae3745ecb5d78ba3eda7a
  • Pointer size: 131 Bytes
  • Size of remote file: 574 kB
images/114.webp ADDED

Git LFS Details

  • SHA256: 98602ae799a4baeb7f9258a02a42e605fe7e737f949c74038d64daea023eb81b
  • Pointer size: 131 Bytes
  • Size of remote file: 591 kB
images/115.png DELETED

Git LFS Details

  • SHA256: b980839472618ad762b2e4973197e3075e6f724234b9caa9609333ef6f3d1f97
  • Pointer size: 131 Bytes
  • Size of remote file: 489 kB
images/115.webp ADDED

Git LFS Details

  • SHA256: e94b61d901b4dcf35194307a9577868fd5a082da552438a74c77a53e5615217c
  • Pointer size: 131 Bytes
  • Size of remote file: 501 kB
images/116.png DELETED

Git LFS Details

  • SHA256: b916380296ab43d542400371a7b7958a2ab1bd4c14468f14acd8ed30aee3326a
  • Pointer size: 131 Bytes
  • Size of remote file: 488 kB
images/116.webp ADDED

Git LFS Details

  • SHA256: 18a73ae74b6371692ab6a1e16f216851ac3db6ca2003371862dfca592c5ed563
  • Pointer size: 131 Bytes
  • Size of remote file: 502 kB
images/117.png DELETED

Git LFS Details

  • SHA256: da8baa38cfaa7861633d778ff67be095b22fdfb33058d6f12e7ce43da7fd4b36
  • Pointer size: 132 Bytes
  • Size of remote file: 1.21 MB
images/117.webp ADDED

Git LFS Details

  • SHA256: 48912514a38ef47a2eaa0c7936d64a3dd179bf46974bf9b99f9733794aaf3d36
  • Pointer size: 131 Bytes
  • Size of remote file: 890 kB
images/118.png DELETED

Git LFS Details

  • SHA256: d1cdfb70997598cad847e036d8112a94685f593cce07550915aa0c61e24ff3e1
  • Pointer size: 131 Bytes
  • Size of remote file: 478 kB
images/118.webp ADDED

Git LFS Details

  • SHA256: d11048711efc769623b02c159168524953b281695ceaef419f412375377bbfec
  • Pointer size: 131 Bytes
  • Size of remote file: 485 kB
images/119.png DELETED

Git LFS Details

  • SHA256: 3d166063e8ef37db5872fbc2772bba65ee16da9ac522dae502e8020a1f85ede5
  • Pointer size: 131 Bytes
  • Size of remote file: 425 kB
images/119.webp ADDED

Git LFS Details

  • SHA256: c46e7f3b4c794716ce9225705a9f62e12fcab89496523e46bd1013102488382f
  • Pointer size: 131 Bytes
  • Size of remote file: 431 kB
images/12.png DELETED

Git LFS Details

  • SHA256: 5b5f9a91ec9c72bbd299399136e99bd214ed607f83036545716e9bab409b101e
  • Pointer size: 131 Bytes
  • Size of remote file: 714 kB
images/12.webp ADDED

Git LFS Details

  • SHA256: bc8dc7e78494fb3fd06f8571145433056f0e3160be1b3daffd32a192aedaa4ab
  • Pointer size: 131 Bytes
  • Size of remote file: 753 kB
images/120.png DELETED

Git LFS Details

  • SHA256: 9b81ce8d9a37efa1afaf5e93c87b6779b7141d8ada864732c429cce765b62274
  • Pointer size: 131 Bytes
  • Size of remote file: 553 kB
images/120.webp ADDED

Git LFS Details

  • SHA256: 0c1c5c6b66c96ec820f73c1cc1f6e2bce7f9de1875ed3be5dbf018c0bf736299
  • Pointer size: 131 Bytes
  • Size of remote file: 602 kB
images/121.webp ADDED

Git LFS Details

  • SHA256: c8b99e130a02cc5f15f6e7926a9dcc52169df757811538d46999e0fe92836593
  • Pointer size: 132 Bytes
  • Size of remote file: 1.06 MB
images/122.webp ADDED

Git LFS Details

  • SHA256: 63fc0b988e421c41f3350d9e7fca1940c52a442e3d2974185b69d07a26344c2d
  • Pointer size: 131 Bytes
  • Size of remote file: 667 kB
images/{36.png → 123.webp} RENAMED
File without changes
images/124.webp ADDED

Git LFS Details

  • SHA256: 142a797c8cbfcfa82f2503b1d7644278dedbe2456bd2d3709a975b79b367f69c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.05 MB