aboutsummaryrefslogtreecommitdiff
path: root/pkg/fileop
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/fileop')
-rw-r--r--pkg/fileop/exif.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/fileop/exif.go b/pkg/fileop/exif.go
index c2449ad..79716eb 100644
--- a/pkg/fileop/exif.go
+++ b/pkg/fileop/exif.go
@@ -37,6 +37,17 @@ func ReadExif(path string) (*media.MediaEXIF, error) {
newExif.Maker = &make
}
+ // Get Image Size
+ width, err := fileInfo.GetFloat("ImageWidth")
+ if err == nil {
+ newExif.Width = &width
+ }
+
+ height, err := fileInfo.GetFloat("ImageHeight")
+ if err == nil {
+ newExif.Height = &height
+ }
+
// Get lens
lens, err := fileInfo.GetString("LensModel")
if err == nil {