You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added ImageMagick 7 Q16-HDRI for consistent dithering
Debian apt only provides ImageMagick 6 which produces different dithering
output than local dev environments running IM7. This caused visual
inconsistencies between development and production.
Changes:
- Multi-stage build copies IM7 from dpokidov/imagemagick
- Wrapper script filters deprecation warnings from gm package
- Documentation recommends docker-dev.sh for version parity
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+29-3Lines changed: 29 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Home Assistant add-on for TRMNL e-ink displays. Captures HA dashboard screenshot
8
8
9
9
**Runtime:** Bun 1.3.5+ (not Node.js)
10
10
**Language:** TypeScript with strict type checking
11
-
**Image Processing:** ImageMagick via `gm` package
11
+
**Image Processing:** ImageMagick 7 Q16-HDRI via `gm` package
12
12
13
13
## Development Commands
14
14
@@ -121,11 +121,37 @@ Error hierarchy:
121
121
122
122
## Local Development Setup
123
123
124
+
### Recommended: Docker Dev (ensures ImageMagick version parity)
125
+
126
+
```bash
127
+
cd trmnl-ha/ha-trmnl
128
+
cp options-dev.json.example options-dev.json
129
+
# Edit options-dev.json with your HA URL and token
130
+
./scripts/docker-dev.sh
131
+
```
132
+
133
+
This runs the app inside Docker with hot-reload, using the **exact same ImageMagick 7 Q16-HDRI** version as production. This ensures dithering output is identical between dev and prod.
134
+
135
+
### Alternative: Native Bun (requires local ImageMagick 7)
136
+
137
+
If you prefer running outside Docker, you need ImageMagick 7 installed locally:
138
+
139
+
```bash
140
+
# macOS
141
+
brew install imagemagick
142
+
143
+
# Verify version (must be 7.x with Q16-HDRI)
144
+
convert -version | head -1
145
+
# Should show: Version: ImageMagick 7.x.x Q16-HDRI
146
+
```
147
+
148
+
Then:
124
149
1. Copy `options-dev.json.example` to `options-dev.json`
125
150
2. Add your HA URL and access token
126
151
3. Run `bun run dev`
127
152
128
-
For development without real Home Assistant:
153
+
### Mock HA Server (for development without real HA)
0 commit comments