Skip to content

Commit

Permalink
Display first photo independently from checking for updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb9 committed Feb 2, 2024
1 parent bafa2a9 commit 20eced9
Show file tree
Hide file tree
Showing 8 changed files with 160 additions and 157 deletions.
98 changes: 53 additions & 45 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "syno-photo-frame"
version = "0.10.1"
version = "0.10.2"
edition = "2021"
description = "Full-screen slideshow for Synology Photos albums"
license = "GPL-3.0-or-later"
Expand All @@ -18,7 +18,7 @@ rust-version = "1.70"
exclude = [
"doc/",
"dpkg/",
"images/*.xcf"
"assets/*.xcf"
]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ I wrote this app for a DIY digital photo frame project using
my Synology NAS over LAN.

Why not use Synology Photos in a web browser directly? There are two
reasons. First, current version of Synology Photos (1.6.1 at the time
reasons. First, current version of Synology Photos (1.6.x at the time
of writing) does not allow slideshow speed adjustments, and changes
photo every 3 or 4 seconds - way too fast for a photo frame. Second,
running a full www browser is more resource demanding than a simple
Expand Down Expand Up @@ -132,7 +132,9 @@ apt install -y \
libssl-dev'
```

Install the app from [crates.io](https://crates.io/crates/syno-photo-frame):
Install the app from
[crates.io](https://crates.io/crates/syno-photo-frame) (you can use
the same command to update the app when new version gets published):
```
cargo install syno-photo-frame
```
Expand Down Expand Up @@ -204,6 +206,17 @@ solution, e.g. for Raspberry Pi Zero I'm using [Witty Pi 3
Mini](https://www.adafruit.com/product/5038).


### Auto Brightness

For my digital photo frame project I attached a light sensor to Pi's
GPIO to adjust monitor's brightness automatically depending on ambient
light. [TSL2591](https://www.adafruit.com/product/1980) is an example
of such sensor. Check out my
[auto-brightness-rpi-tsl2591](https://github.com/Caleb9/auto-brightness-rpi-tsl2591)
project to add automatic brightness control to your digital photo
frame.


### Start Slideshow From Random Photo and Random Order

By default photos are displayed in the order of shooting date. If the
Expand Down Expand Up @@ -232,17 +245,6 @@ photo. Use the `--splash` option to point the app to a .jpeg file
location.


### Auto Brightness

For my digital photo frame project I attached a light sensor to Pi's
GPIO to adjust monitor's brightness automatically depending on ambient
light. [TSL2591](https://www.adafruit.com/product/1980) is an example
of such sensor. Check out my
[auto-brightness-rpi-tsl2591](https://github.com/Caleb9/auto-brightness-rpi-tsl2591)
project to add automatic brightness control to your digital photo
frame.


## Supported By

[![JetBrains Logo (Main)
Expand Down
6 changes: 6 additions & 0 deletions dpkg/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
syno-photo-frame (0.10.2) stable; urgency=low
[Piotr Karasinski ]
* Display first photo independently from checking for updates

-- Piotr-Karasinski <7767011+Caleb9@users.noreply.github.com> Fri, 02 Feb 2024 12:00:00 +0200

syno-photo-frame (0.10.1) stable; urgency=low
[Piotr Karasinski ]
* Fix quit event handling
Expand Down
2 changes: 1 addition & 1 deletion src/img.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl From<(u32, u32)> for Dimensions {
}

impl Dimensions {
fn new(w: f64, h: f64) -> Self {
const fn new(w: f64, h: f64) -> Self {
Self { w, h }
}

Expand Down
Loading

0 comments on commit 20eced9

Please sign in to comment.