-
Notifications
You must be signed in to change notification settings - Fork 12
Add automatic dependency setup for task dev #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| kind: Added | ||
| body: Add HEIC/HEIF, GIF image and MOV video format support via FFmpeg | ||
| time: 2026-01-25T21:00:00Z | ||
| --- | ||
|
|
||
| HEIC (High Efficiency Image Container), HEIF (High Efficiency Image Format), GIF, and MOV (QuickTime) files are now fully supported. These formats, commonly used by iOS devices and other platforms, are decoded using FFmpeg when available. The extensions `.heic`, `.heif`, `.gif`, and `.mov` are now included in the default configuration, so Photofield will automatically index and display these files alongside your other media. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,8 +17,13 @@ RUN \ | |
| -o /build/photofield . | ||
|
|
||
| # Runtime stage | ||
| FROM alpine:3.22 | ||
| FROM alpine:3.23 | ||
|
|
||
| # Install runtime dependencies | ||
| # - exiftool: metadata extraction | ||
| # - ffmpeg: video thumbnails, HEIC/HEIF/MOV/GIF support (8.0.1+ includes HEVC decoder) | ||
| # - libjpeg-turbo-utils: fast JPEG decoding via djpeg | ||
| # - libwebp: WebP encoding support | ||
| RUN apk add --no-cache exiftool ffmpeg libjpeg-turbo-utils libwebp && \ | ||
| ln -s /usr/lib/libwebp.so.7 /usr/lib/libwebp.so | ||
|
|
||
|
Comment on lines
+20
to
29
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -265,12 +265,35 @@ tasks: | |
| wget -q -O "$gpkg_path" https://github.com/SmilyOrg/tinygpkg-data/releases/download/{{ .GPKG_VER }}/{{ .GPKG_FILE }} | ||
| echo "downloaded to $PWD/$gpkg_path" | ||
|
|
||
| setup:ui: | ||
| desc: Install UI dependencies | ||
| dir: ui | ||
| sources: | ||
| - package.json | ||
| - package-lock.json | ||
| generates: | ||
| - node_modules/.package-lock.json | ||
| cmds: | ||
| - npm install | ||
|
|
||
| setup: | ||
| desc: Setup minimal dependencies for development (UI npm packages and geo assets) | ||
| deps: | ||
| - setup:ui | ||
| - assets | ||
|
|
||
| dev: | ||
| desc: Run the API and UI in watch mode | ||
| cmds: | ||
| - task: setup | ||
| - task: dev:watch | ||
|
|
||
|
Comment on lines
+279
to
+290
|
||
| dev:watch: | ||
| desc: Run the API and UI in watch mode | ||
| deps: | ||
| - watch | ||
| - ui | ||
|
|
||
| ui: | ||
| desc: Run the UI in watch mode | ||
| dir: ui | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |||||
| These tools are not strictly required, but if they are installed in your system, Photofield will use them to improve performance, metadata extraction, thumbnail generation, and video previews. | ||||||
|
|
||||||
| - [ExifTool]: Extracts metadata from many more formats than the embedded [goexif]. | ||||||
| - [FFmpeg]: Generates video thumbnails and previews and adds support for more image formats (even basic RAW). | ||||||
| - [FFmpeg]: Generates video thumbnails and previews and adds support for more image formats including HEIC/HEIF (iOS photos), MOV (QuickTime videos), and basic RAW formats. **(v7.0+ recommended)** | ||||||
|
||||||
| - [FFmpeg]: Generates video thumbnails and previews and adds support for more image formats including HEIC/HEIF (iOS photos), MOV (QuickTime videos), and basic RAW formats. **(v7.0+ recommended)** | |
| - [FFmpeg]: Generates video thumbnails and previews and adds support for more image formats including HEIC/HEIF (iOS photos), MOV (QuickTime videos), and basic RAW formats. **(a recent FFmpeg version is recommended; matching the version used in the official Docker image is a good baseline for HEVC/HEIC support)** |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2292,6 +2292,10 @@ func main() { | |||||
| mime.AddExtensionType(".png", "image/png") | ||||||
| mime.AddExtensionType(".jpg", "image/jpg") | ||||||
|
||||||
| mime.AddExtensionType(".jpg", "image/jpg") | |
| mime.AddExtensionType(".jpg", "image/jpeg") |
Uh oh!
There was an error while loading. Please reload this page.