Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ImmichFrame.Core/Interfaces/IServerSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public interface IGeneralSettings
public double TransitionDuration { get; }
public bool DownloadImages { get; }
public int RenewImagesDuration { get; }
public bool UseFullResolutionImages { get; }
public bool ShowClock { get; }
public string? ClockFormat { get; }
public string? ClockDateFormat { get; }
Expand Down
6 changes: 5 additions & 1 deletion ImmichFrame.Core/Logic/PooledImmichFrameLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ public async Task<AssetResponse> GetAsset(Guid id, AssetTypeEnum? assetType = nu
}
}

var data = await _immichApi.ViewAssetAsync(id, string.Empty, AssetMediaSize.Preview);
var mediaSize = _generalSettings.UseFullResolutionImages
? AssetMediaSize.Fullsize
: AssetMediaSize.Preview;

var data = await _immichApi.ViewAssetAsync(id, string.Empty, mediaSize);

if (data == null)
throw new AssetNotFoundException($"Asset {id} was not found!");
Expand Down
1 change: 1 addition & 0 deletions ImmichFrame.WebApi.Tests/Resources/TestV1.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"PlayAudio": true,
"Layout": "Layout_TEST",
"DownloadImages": true,
"UseFullResolutionImages": true,
"ShowMemories": true,
"ShowFavorites": true,
"ShowArchived": true,
Expand Down
1 change: 1 addition & 0 deletions ImmichFrame.WebApi.Tests/Resources/TestV2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"General": {
"AuthenticationSecret": "AuthenticationSecret_TEST",
"DownloadImages": true,
"UseFullResolutionImages": true,
"RenewImagesDuration": 7,
"Webcalendars": [
"Webcalendars_TEST"
Expand Down
1 change: 1 addition & 0 deletions ImmichFrame.WebApi.Tests/Resources/TestV2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
General:
AuthenticationSecret: AuthenticationSecret_TEST
DownloadImages: true
UseFullResolutionImages: true
RenewImagesDuration: 7
Webcalendars:
- Webcalendars_TEST
Expand Down
2 changes: 2 additions & 0 deletions ImmichFrame.WebApi/Helpers/Config/ServerSettingsV1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class ServerSettingsV1 : IConfigSettable
public bool ShowArchived { get; set; } = false;
public bool ShowVideos { get; set; } = false;
public bool DownloadImages { get; set; } = false;
public bool UseFullResolutionImages { get; set; } = false;
public int RenewImagesDuration { get; set; } = 30;
public int? ImagesFromDays { get; set; }
public DateTime? ImagesFromDate { get; set; }
Expand Down Expand Up @@ -110,6 +111,7 @@ class GeneralSettingsV1Adapter(ServerSettingsV1 _delegate) : IGeneralSettings
public int Interval => _delegate.Interval;
public double TransitionDuration => _delegate.TransitionDuration;
public bool DownloadImages => _delegate.DownloadImages;
public bool UseFullResolutionImages => _delegate.UseFullResolutionImages;
public int RenewImagesDuration => _delegate.RenewImagesDuration;
public bool ShowClock => _delegate.ShowClock;
public string? ClockFormat => _delegate.ClockFormat;
Expand Down
1 change: 1 addition & 0 deletions ImmichFrame.WebApi/Models/ServerSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

[YamlMember(Alias = "Accounts")]
[JsonPropertyName("Accounts")]
public IEnumerable<ServerAccountSettings> AccountsImpl { get; set; }

Check warning on line 16 in ImmichFrame.WebApi/Models/ServerSettings.cs

View workflow job for this annotation

GitHub Actions / test

Non-nullable property 'AccountsImpl' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

//Covariance not allowed on interface impls
[JsonIgnore]
Expand All @@ -38,6 +38,7 @@
public class GeneralSettings : IGeneralSettings, IConfigSettable
{
public bool DownloadImages { get; set; } = false;
public bool UseFullResolutionImages { get; set; } = false;
public string Language { get; set; } = "en";
public string? ImageLocationFormat { get; set; } = "City,State,Country";
public string? PhotoDateFormat { get; set; } = "MM/dd/yyyy";
Expand Down
1 change: 1 addition & 0 deletions Install_Web.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ services:
# ImageFill: "false"
# Layout: "splitview"
# DownloadImages: "false"
# UseFullResolutionImages: "false"
# ShowMemories: "false"
# ShowFavorites: "false"
# ShowArchived: "false"
Expand Down
1 change: 1 addition & 0 deletions docker/Settings.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"General": {
"AuthenticationSecret": null,
"DownloadImages": false,
"UseFullResolutionImages": false,
"RenewImagesDuration": 30,
"Webcalendars": [
"calendarurl"
Expand Down
1 change: 1 addition & 0 deletions docker/Settings.example.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
General:
AuthenticationSecret: null
DownloadImages: false
UseFullResolutionImages: false
RenewImagesDuration: 30
Webcalendars:
- calendarurl
Expand Down
1 change: 1 addition & 0 deletions docker/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ApiKey=KEY
# PlayAudio: false
# Layout=splitview
# DownloadImages=false
# UseFullResolutionImages=false
# ShowMemories=false
# ShowFavorites=false
# ShowArchived=false
Expand Down
2 changes: 2 additions & 0 deletions docs/docs/getting-started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ General:
AuthenticationSecret: null # string, no default
# whether to download images to the server
DownloadImages: false # boolean
# load image assets in full resolution instead of preview size
UseFullResolutionImages: false # boolean
# if images are downloaded, re-download if age (in days) is more than this
RenewImagesDuration: 30 # int
# A list of webcalendar URIs in the .ics format. Supports basic auth via standard URL format.
Expand Down
1 change: 1 addition & 0 deletions docs/docs/getting-started/configurationV1.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ sidebar_position: 4
| [Filtering](#filtering) | ImagesUntilDate | Date | | Show images before date. |
| Caching | RenewImagesDuration | int | 30 | Interval in days. |
| Caching | DownloadImages | boolean | false | \*Client only. |
| Caching | UseFullResolutionImages | boolean | false | Loads images in full resolution instead of preview size. |
| Caching | RefreshAlbumPeopleInterval | int | 12 | Interval in hours. Determines how often images are pulled from a person in immich. |
| Image | ImageZoom | boolean | true | Zooms into or out of an image and gives it a touch of life. |
| Image | ImagePan | boolean | false | Pans an image in a random direction and gives it a touch of life. |
Expand Down
Loading