mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
remove unsupported exif tag
This commit is contained in:
parent
7ea8c46c4c
commit
f78feff277
2 changed files with 0 additions and 7 deletions
|
|
@ -45,7 +45,6 @@ const (
|
|||
WhiteBalance = "exif-ifd2-WhiteBalance"
|
||||
FocalLengthIn35mmFilm = "exif-ifd2-FocalLengthIn35mmFilm"
|
||||
SceneCaptureType = "exif-ifd2-SceneCaptureType"
|
||||
LensSpecification = "exif-ifd2-LensSpecification"
|
||||
LensMake = "exif-ifd2-LensMake"
|
||||
LensModel = "exif-ifd2-LensModel"
|
||||
CompositeImage = "exif-ifd2-CompositeImage"
|
||||
|
|
@ -132,7 +131,6 @@ type EXIF struct {
|
|||
WhiteBalance int
|
||||
FocalLengthIn35mmFilm int
|
||||
SceneCaptureType int
|
||||
LensSpecification string
|
||||
LensMake string
|
||||
LensModel string
|
||||
CompositeImage int
|
||||
|
|
@ -249,7 +247,6 @@ func Metadata(buf []byte) (ImageMetadata, error) {
|
|||
WhiteBalance: vipsExifIntTag(image, WhiteBalance),
|
||||
FocalLengthIn35mmFilm: vipsExifIntTag(image, FocalLengthIn35mmFilm),
|
||||
SceneCaptureType: vipsExifIntTag(image, SceneCaptureType),
|
||||
LensSpecification: vipsExifStringTag(image, LensSpecification),
|
||||
LensMake: vipsExifStringTag(image, LensMake),
|
||||
LensModel: vipsExifStringTag(image, LensModel),
|
||||
CompositeImage: vipsExifIntTag(image, CompositeImage),
|
||||
|
|
|
|||
|
|
@ -204,7 +204,6 @@ func TestEXIF(t *testing.T) {
|
|||
WhiteBalance: 0,
|
||||
FocalLengthIn35mmFilm: 26,
|
||||
SceneCaptureType: 0,
|
||||
LensSpecification: "17/4 6/1 9/5 12/5",
|
||||
LensMake: "Apple",
|
||||
LensModel: "iPhone XS back dual camera 4.25mm f/1.8",
|
||||
CompositeImage: 2,
|
||||
|
|
@ -344,9 +343,6 @@ func TestEXIF(t *testing.T) {
|
|||
if metadata.EXIF.SceneCaptureType != file.SceneCaptureType {
|
||||
t.Fatalf("Unexpected image exif SceneCaptureType: %d != %d", metadata.EXIF.SceneCaptureType, file.SceneCaptureType)
|
||||
}
|
||||
if metadata.EXIF.LensSpecification != file.LensSpecification {
|
||||
t.Fatalf("Unexpected image exif LensSpecification: %s != %s", metadata.EXIF.LensSpecification, file.LensSpecification)
|
||||
}
|
||||
if metadata.EXIF.LensMake != file.LensMake {
|
||||
t.Fatalf("Unexpected image exif LensMake: %s != %s", metadata.EXIF.LensMake, file.LensMake)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue