Skip to content

Store raster images in Git LFS - #133

Merged
JulianKahnert merged 1 commit into
developfrom
feature/git-lfs-images
Sep 3, 2026
Merged

JulianKahnert merged 1 commit into
developfrom
feature/git-lfs-images

Conversation

@JulianKahnert

Copy link
Copy Markdown
Member

The press kit is about to carry app screenshots at full device resolution — several megabytes of binaries in the history of a repository whose sources are text.

  • .gitattributes tracks *.png, *.jpg and *.jpeg; SVG stays a normal blob, because it diffs
  • The 24 images already versioned are converted, so future changes to them replace a pointer rather than a blob
  • The Pages workflow checks out with lfs: true

That last point is the one worth reviewing: without it the runner writes pointer files, Resources/ copies them to the site as text and the press kit zips text — and the build still passes, so the failure would only show in a browser.

Verified locally that git stores a pointer, the working tree holds the real PNG, and swift run writes real images to Output/ and into presskit.zip.

The press kit is about to carry app screenshots at full device resolution, which
would put several megabytes of binaries into the history of a repository whose
sources are text. PNG and JPEG are tracked in LFS from here on; SVG stays a
normal blob, because it diffs.

The Pages workflow checks out with `lfs: true`. Without it the runner writes
pointer files, `Resources/` copies them to the site as text and the press kit
zips text — and the build still passes, so the failure would only show in a
browser.
@JulianKahnert
JulianKahnert merged commit 31c67e3 into develop Sep 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant