Skip to content

Commit

Permalink
Config: Disable the use of libvips on 32-bit operating systems #4299
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Mayer <michael@photoprism.app>
  • Loading branch information
lastzero committed May 25, 2024
1 parent 5dfe098 commit 8cfb102
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/config/config_features.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package config

import "math/bits"

var Sponsor = Env(EnvDemo, EnvSponsor, EnvTest)

// DisableSettings checks if users should not be allowed to change settings.
Expand Down Expand Up @@ -126,6 +128,10 @@ func (c *Config) DisableHeifConvert() bool {

// DisableVips checks if the use of libvips is disabled.
func (c *Config) DisableVips() bool {
if bits.UintSize < 64 {
return true
}

return c.options.DisableVips
}

Expand Down

1 comment on commit 8cfb102

@Radiokot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ”₯

Please sign in to comment.