Skip to content

Commit

Permalink
feat: add nef file support
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerb committed Apr 9, 2022
1 parent 16b26d3 commit 50b1588
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 114 deletions.
83 changes: 0 additions & 83 deletions Gopkg.lock

This file was deleted.

30 changes: 0 additions & 30 deletions Gopkg.toml

This file was deleted.

2 changes: 1 addition & 1 deletion common/file-util.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
// This map is used to define extensions to examine
knownTypes = map[string][]string{
"video": []string{"mp4", "avi", "m4v", "mov", "insv"},
"photo": []string{"heic", "jpeg", "jpg", "raw", "arw", "png", "psd", "gpr", "gif", "tiff", "tif", "dng", "insp"},
"photo": []string{"heic", "jpeg", "jpg", "raw", "arw", "png", "psd", "gpr", "gif", "tiff", "tif", "dng", "insp", "nef"},
"sidecar": []string{"xmp", "on1", "xml"},
// Don't really need LRV - Low Resolution Video or THM - Thumbnail
}
Expand Down
16 changes: 16 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module github.com/mgerb/mgphoto

go 1.17

require (
github.com/rwcarlsen/goexif v0.0.0-20190107194617-b1fd11e07dc5
github.com/vbauerster/mpb v3.3.4+incompatible
gopkg.in/djherbis/times.v1 v1.2.0
)

require (
github.com/VividCortex/ewma v1.1.1 // indirect
github.com/mattn/go-isatty v0.0.4 // indirect
golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613 // indirect
golang.org/x/sys v0.0.0-20190204203706-41f3e6584952 // indirect
)
14 changes: 14 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
github.com/VividCortex/ewma v1.1.1 h1:MnEK4VOv6n0RSY4vtRe3h11qjxL3+t0B8yOL8iMXdcM=
github.com/VividCortex/ewma v1.1.1/go.mod h1:2Tkkvm3sRDVXaiyucHiACn4cqf7DpdyLvmxzcbUokwA=
github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs=
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/rwcarlsen/goexif v0.0.0-20190107194617-b1fd11e07dc5 h1:MK7sdoepDiydfUr+eIT5ak4CL7L9EDybtAF3XXXTpgc=
github.com/rwcarlsen/goexif v0.0.0-20190107194617-b1fd11e07dc5/go.mod h1:hPqNNc0+uJM6H+SuU8sEs5K5IQeKccPqeSjfgcKGgPk=
github.com/vbauerster/mpb v3.3.4+incompatible h1:DDIhnwmgTQIDZo+SWlEr5d6mJBxkOLBwCXPzunhEfJ4=
github.com/vbauerster/mpb v3.3.4+incompatible/go.mod h1:zAHG26FUhVKETRu+MWqYXcI70POlC6N8up9p1dID7SU=
golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613 h1:MQ/ZZiDsUapFFiMS+vzwXkCTeEKaum+Do5rINYJDmxc=
golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/sys v0.0.0-20190204203706-41f3e6584952 h1:FDfvYgoVsA7TTZSbgiqjAbfPbK47CNHdWl3h/PJtii0=
golang.org/x/sys v0.0.0-20190204203706-41f3e6584952/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
gopkg.in/djherbis/times.v1 v1.2.0 h1:UCvDKl1L/fmBygl2Y7hubXCnY7t4Yj46ZrBFNUipFbM=
gopkg.in/djherbis/times.v1 v1.2.0/go.mod h1:AQlg6unIsrsCEdQYhTzERy542dz6SFdQFZFv6mUY0P8=

0 comments on commit 50b1588

Please sign in to comment.