-
Notifications
You must be signed in to change notification settings - Fork 12
Add support for HEIC/HEIF, GIF, and MOV formats with FFmpeg integration #171
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
Changes from all commits
969b81b
93951d1
da05241
fd80104
b56e415
7982f4a
05ddae6
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 supported when FFmpeg is available. These formats, commonly used by iOS devices and other platforms, are decoded using FFmpeg. 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 when FFmpeg is installed. |
| 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(".jpeg", "image/jpeg") | ||
| mime.AddExtensionType(".heic", "image/heic") | ||
| mime.AddExtensionType(".heif", "image/heif") | ||
| mime.AddExtensionType(".gif", "image/gif") | ||
| mime.AddExtensionType(".mov", "video/quicktime") | ||
|
Comment on lines
+2295
to
+2298
|
||
| mime.AddExtensionType(".ico", "image/vnd.microsoft.icon") | ||
|
|
||
| uifs, err := fs.Sub(StaticFs, "ui/dist") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds a specific FFmpeg version recommendation, but the Dockerfile comment references a different version. Consider keeping version guidance consistent across the repo (or avoiding a specific version and instead documenting the required codec support for HEIC/HEIF/MOV).