Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

adjust for external API changes

Chris Luca16cfa14715
diff --git a/go/images/orientation.go b/go/images/orientation.go
index a7c126fc1c..41ed3f0afb 100644
--- a/go/images/orientation.go
+++ b/go/images/orientation.go
@@ -21,7 +21,10 @@ func FixJpgOrientation(data []byte) (oriented []byte) {
}
angle := 0
flipMode := FlipDirection(0)
- orient := tag.Int(0)
+ orient, err := tag.Int(0)
+ if err != nil {
+ return data
+ }
switch orient {
case topLeftSide:
// do nothing