Skip to content

Commit a607bfc

Browse files
Merge pull request #59 from rodrigogs/main
chore: sync main to dev after v1.27.0
2 parents 978dd5e + 60eb033 commit a607bfc

8 files changed

Lines changed: 103 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [1.27.0](https://github.com/rodrigogs/whats-reader/compare/v1.26.1...v1.27.0) (2026-01-05)
2+
3+
4+
### Features
5+
6+
* improve social media preview images with app logo ([f0c4c26](https://github.com/rodrigogs/whats-reader/commit/f0c4c268d18c7728ddcde4e8ab72b2f030464e7c))
7+
18
## [1.26.1](https://github.com/rodrigogs/whats-reader/compare/v1.26.0...v1.26.1) (2026-01-05)
29

310

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "whats-reader",
33
"productName": "WhatsApp Backup Reader",
4-
"version": "1.26.1",
4+
"version": "1.27.0",
55
"description": "A desktop app to read and visualize WhatsApp chat exports",
66
"license": "AGPL-3.0",
77
"author": {

scripts/generate-og-images.sh

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
#!/bin/bash
2+
# Generate Open Graph images for social media sharing
3+
# Uses the actual app icon for a professional, recognizable look
4+
5+
set -e
6+
7+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8+
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
9+
STATIC_DIR="$PROJECT_ROOT/static"
10+
ICON="$STATIC_DIR/icon.png"
11+
12+
# Verify icon exists
13+
if [ ! -f "$ICON" ]; then
14+
echo "Error: icon.png not found at $ICON"
15+
exit 1
16+
fi
17+
18+
cd "$STATIC_DIR"
19+
20+
# Colors (WhatsApp theme)
21+
BG_DARK="#075e54" # WhatsApp dark green (header/dark mode)
22+
BG_TEAL="#128C7E" # WhatsApp teal
23+
24+
echo "Generating Open Graph images with app icon..."
25+
26+
# =============================================================================
27+
# Main OG image (1200x630) - Facebook, LinkedIn, Discord, general
28+
# Layout: Gradient background, icon on left, text on right
29+
# =============================================================================
30+
magick -size 1200x630 \
31+
-define gradient:direction=east \
32+
"gradient:${BG_DARK}-${BG_TEAL}" \
33+
\( "$ICON" -resize 280x280 \
34+
\( +clone -background black -shadow 60x20+0+10 \) \
35+
+swap -background none -layers merge +repage \
36+
\) -gravity west -geometry +100+0 -composite \
37+
-fill white \
38+
-font "Helvetica-Bold" -pointsize 56 \
39+
-gravity west -annotate +460-30 "WhatsApp" \
40+
-annotate +460+40 "Backup Reader" \
41+
-font "Helvetica" -pointsize 26 \
42+
-fill "rgba(255,255,255,0.85)" \
43+
-annotate +460+110 "Read your chat exports offline • Private & secure" \
44+
og-image.png
45+
46+
echo "✅ Created og-image.png (1200x630)"
47+
48+
# =============================================================================
49+
# WhatsApp square image (800x800) - Avoids cropping on WhatsApp
50+
# Layout: Icon centered on top, text below
51+
# =============================================================================
52+
magick -size 800x800 \
53+
-define gradient:direction=south \
54+
"gradient:${BG_DARK}-${BG_TEAL}" \
55+
\( "$ICON" -resize 260x260 \
56+
\( +clone -background black -shadow 60x20+0+10 \) \
57+
+swap -background none -layers merge +repage \
58+
\) -gravity center -geometry +0-100 -composite \
59+
-fill white \
60+
-font "Helvetica-Bold" -pointsize 44 \
61+
-gravity center -annotate +0+110 "WhatsApp" \
62+
-annotate +0+165 "Backup Reader" \
63+
-font "Helvetica" -pointsize 22 \
64+
-fill "rgba(255,255,255,0.85)" \
65+
-annotate +0+230 "Read your chats offline • Private & secure" \
66+
og-image-square.png
67+
68+
echo "✅ Created og-image-square.png (800x800)"
69+
70+
# =============================================================================
71+
# Twitter/X image (copy of main, same dimensions work for Twitter cards)
72+
# =============================================================================
73+
cp og-image.png og-image-twitter.png
74+
echo "✅ Created og-image-twitter.png (copy of og-image.png)"
75+
76+
# Show file sizes
77+
echo ""
78+
echo "📊 Generated images:"
79+
ls -lh og-image*.png
80+
81+
echo ""
82+
echo "🎯 Usage:"
83+
echo " - og-image.png (1200x630): Facebook, LinkedIn, Discord"
84+
echo " - og-image-square.png (800x800): WhatsApp (avoids cropping)"
85+
echo ""
86+
echo "💡 Test at: https://developers.facebook.com/tools/debug/"

src/app.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,28 @@
2323
<meta name="mobile-web-app-capable" content="yes" />
2424

2525
<!-- Open Graph meta tags for social media -->
26-
<!-- Note: og-image.png (1200x630px) is located in the static/ directory -->
26+
<!-- Primary OG image (1200x630px) for Facebook, LinkedIn, Discord -->
2727
<meta property="og:type" content="website" />
2828
<meta property="og:url" content="https://rodrigogs.github.io/whats-reader/" />
2929
<meta property="og:title" content="WhatsApp Backup Reader - Read Your Chat Exports" />
3030
<meta property="og:description" content="Read and browse your WhatsApp chat exports with media support, audio transcription, and bookmarks - 100% offline and private" />
3131
<meta property="og:image" content="https://rodrigogs.github.io/whats-reader/og-image.png" />
3232
<meta property="og:image:width" content="1200" />
3333
<meta property="og:image:height" content="630" />
34-
<meta property="og:image:alt" content="WhatsApp Backup Reader screenshot" />
34+
<meta property="og:image:alt" content="WhatsApp Backup Reader - Read your chat exports offline, 100% private" />
3535
<meta property="og:site_name" content="WhatsApp Backup Reader" />
36+
<!-- Secondary square image for WhatsApp and other messaging apps -->
37+
<meta property="og:image" content="https://rodrigogs.github.io/whats-reader/og-image-square.png" />
38+
<meta property="og:image:width" content="800" />
39+
<meta property="og:image:height" content="800" />
3640

3741
<!-- Twitter Card meta tags -->
3842
<meta name="twitter:card" content="summary_large_image" />
3943
<meta name="twitter:url" content="https://rodrigogs.github.io/whats-reader/" />
4044
<meta name="twitter:title" content="WhatsApp Backup Reader - Read Your Chat Exports" />
4145
<meta name="twitter:description" content="Read and browse your WhatsApp chat exports with media support, audio transcription, and bookmarks - 100% offline and private" />
4246
<meta name="twitter:image" content="https://rodrigogs.github.io/whats-reader/og-image.png" />
43-
<meta name="twitter:image:alt" content="WhatsApp Backup Reader screenshot" />
47+
<meta name="twitter:image:alt" content="WhatsApp Backup Reader - Read your chat exports offline, 100% private" />
4448

4549
<!-- Security -->
4650
<meta name="referrer" content="no-referrer" />

static/og-image-square.png

343 KB
Loading

static/og-image-twitter.png

393 KB
Loading

static/og-image.png

169 KB
Loading

0 commit comments

Comments
 (0)