Skip to content

Commit

Permalink
fix: prevent setting blurhash when saveFlag is set (#118) (#119)
Browse files Browse the repository at this point in the history
* fix: fixed release ldflags

* fix: prevent setting blurhash when saveFlag is set

---------

Co-authored-by: Jamel Lassoued | ジャメル <[email protected]>
Co-authored-by: rawnly <[email protected]>
  • Loading branch information
3 people authored Jan 21, 2024
1 parent 73c63f0 commit b88d813
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ var rootCmd = &cobra.Command{

downloadLocation := fmt.Sprintf("%s/%s.jpg", downloadFolder, photo.Id)

_ = blurhash.Prepare(photo)
if !saveFlag {
_ = blurhash.Prepare(photo)
}

var location string

Expand Down

0 comments on commit b88d813

Please sign in to comment.