parent
84a94933b3
commit
6d75ec60bf
|
@ -8,7 +8,9 @@ and query your collections in various ways.
|
||||||
All media is content-addressed by its SHA-1 hash value, and at your option
|
All media is content-addressed by its SHA-1 hash value, and at your option
|
||||||
also perceptually hashed. Duplicate search is an essential feature.
|
also perceptually hashed. Duplicate search is an essential feature.
|
||||||
|
|
||||||
Prerequisites: Go, ImageMagick v7, xdg-utils
|
Prerequisites: Go, ImageMagick, xdg-utils
|
||||||
|
|
||||||
|
ImageMagick v7 is preferred, it doesn't shoot out of memory as often.
|
||||||
|
|
||||||
The gallery is designed for simplicity, and easy interoperability.
|
The gallery is designed for simplicity, and easy interoperability.
|
||||||
sqlite3, curl, jq, and the filesystem will take you a long way.
|
sqlite3, curl, jq, and the filesystem will take you a long way.
|
||||||
|
|
4
main.go
4
main.go
|
@ -1377,7 +1377,7 @@ func syncIsImage(path string) (bool, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func syncPingImage(path string) (int, int, error) {
|
func syncPingImage(path string) (int, int, error) {
|
||||||
out, err := exec.Command("magick", "identify", "-limit", "thread", "1",
|
out, err := exec.Command("identify", "-limit", "thread", "1",
|
||||||
"-ping", "-format", "%w %h", path+"[0]").Output()
|
"-ping", "-format", "%w %h", path+"[0]").Output()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, 0, err
|
return 0, 0, err
|
||||||
|
@ -2321,7 +2321,7 @@ func makeThumbnail(load bool, pathImage, pathThumb string) (
|
||||||
//
|
//
|
||||||
// TODO: See if we can optimize resulting WebP animations.
|
// TODO: See if we can optimize resulting WebP animations.
|
||||||
// (Do -layers optimize* apply to this format at all?)
|
// (Do -layers optimize* apply to this format at all?)
|
||||||
cmd := exec.Command("magick", "-limit", "thread", "1",
|
cmd := exec.Command("convert", "-limit", "thread", "1",
|
||||||
|
|
||||||
// Do not invite the OOM killer, a particularly unpleasant guest.
|
// Do not invite the OOM killer, a particularly unpleasant guest.
|
||||||
"-limit", "memory", memoryLimit,
|
"-limit", "memory", memoryLimit,
|
||||||
|
|
Loading…
Reference in New Issue