Skip to content

Commit

Permalink
Fix image not fitting screen; enable image compression
Browse files Browse the repository at this point in the history
  • Loading branch information
ayltai committed Mar 31, 2021
1 parent d6d3b6f commit 3ddb1cf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DevExcuses/Sources/Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ extension Photo {
if
let urls = self.urls,
let raw = urls.raw,
let url = URL(string: raw + "&w=" + String(Int(size.width)) + "&h=" + String(Int(size.height))) {
let url = URL(string: raw + "&auto=compress&fit=crop&w=" + String(Int(size.width)) + "&h=" + String(Int(size.height))) {
URLSession.shared.dataTask(with: url) { (data, response, error) in
if let error = error {
observer.onError(error as NSError)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ A macOS screen saver that shows a random [developer excuse](http://www.devexcuse
![Configurations](Screenshots/configurations.png)

## Downloads
### [Screen Saver](Releases/1.6/screensaver.zip)
### [Screen Saver](Releases/1.7/screensaver.zip)
Double-click to install.

### [Security Camera](Releases/1.6/SecurityCamera.zip)
### [Security Camera](Releases/1.7/SecurityCamera.zip)
Place it to somewhere handy, such as `~/Downloads` or `/usr/bin`, and then update its path in the screen saver configurations .

## Compatibility
Expand Down
Binary file added Releases/1.7/SecurityCamera.zip
Binary file not shown.
Binary file added Releases/1.7/screensaver.zip
Binary file not shown.

0 comments on commit 3ddb1cf

Please sign in to comment.