You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-12-07 23:23:49 +02:00
fixing exif orientation bug on map
This commit is contained in:
@@ -80,7 +80,7 @@ export class PhotoMetadataEntity implements PhotoMetadata {
|
||||
@Column(type => PositionMetaDataEntity)
|
||||
positionData: PositionMetaDataEntity;
|
||||
|
||||
@Column('tinyint', {default: 1})
|
||||
@Column('tinyint', {default: OrientationTypes.TOP_LEFT})
|
||||
orientation: OrientationTypes;
|
||||
|
||||
@Column(type => ImageSizeEntity)
|
||||
|
||||
@@ -93,7 +93,7 @@ export class DiskMangerWorker {
|
||||
cameraData: {},
|
||||
positionData: null,
|
||||
size: {},
|
||||
orientation: OrientationTypes.TOP_RIGHT,
|
||||
orientation: OrientationTypes.TOP_LEFT,
|
||||
creationDate: 0,
|
||||
fileSize: 0
|
||||
};
|
||||
@@ -133,6 +133,7 @@ export class DiskMangerWorker {
|
||||
metadata.orientation = exif.tags.Orientation;
|
||||
}
|
||||
|
||||
|
||||
if (exif.imageSize) {
|
||||
metadata.size = <ImageSize> {width: exif.imageSize.width, height: exif.imageSize.height};
|
||||
} else if (exif.tags.RelatedImageWidth && exif.tags.RelatedImageHeight) {
|
||||
|
||||
Reference in New Issue
Block a user