mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-07-12 23:00:55 +02:00
Fix EXIF fetching
This commit is contained in:
2
main.go
2
main.go
@ -8,7 +8,7 @@ import (
|
|||||||
_ "net/http/pprof"
|
_ "net/http/pprof"
|
||||||
)
|
)
|
||||||
|
|
||||||
const version = "2.1.0.rc1"
|
const version = "2.1.0"
|
||||||
|
|
||||||
type ctxKey string
|
type ctxKey string
|
||||||
|
|
||||||
|
3
vips.h
3
vips.h
@ -109,10 +109,9 @@ vips_get_exif_orientation(VipsImage *image) {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
vips_image_get_typeof(image, EXIF_ORIENTATION) != 0 &&
|
vips_image_get_typeof(image, EXIF_ORIENTATION) != 0 &&
|
||||||
!vips_image_get_string(image, EXIF_ORIENTATION, &orientation)
|
vips_image_get_string(image, EXIF_ORIENTATION, &orientation) == 0
|
||||||
) return atoi(&orientation[0]);
|
) return atoi(&orientation[0]);
|
||||||
|
|
||||||
vips_error("vips_get_exif_orientation", "Can't get EXIF orientation");
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user