mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-15 18:35:54 -07:00
commit
66447e14d4
2 changed files with 30 additions and 2 deletions
5
vips.go
5
vips.go
|
|
@ -246,8 +246,9 @@ func vipsExifOrientation(image *C.VipsImage) int {
|
|||
}
|
||||
|
||||
func vipsExifShort(s string) string {
|
||||
if strings.Contains(s, " (") {
|
||||
return s[:strings.Index(s, "(")-1]
|
||||
i := strings.Index(s, " (")
|
||||
if i > 0 {
|
||||
return s[:i]
|
||||
}
|
||||
return s
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue