This commit is contained in:
Neeraj Gupta 2023-05-03 12:48:40 +05:30
parent 3e1f8e3281
commit 1a25717cb9
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1
2 changed files with 2 additions and 2 deletions

View file

@ -285,7 +285,7 @@ class File extends EnteFile {
}
// return 0 if the height is not available
int get heigth {
int get height {
return pubMagicMetadata?.h ?? 0;
}

View file

@ -276,7 +276,7 @@ class _ZoomableImageState extends State<ZoomableImage>
final int h = imageInfo.image.height, w = imageInfo.image.width;
if (h != 0 &&
w != 0 &&
(h != widget.photo.heigth || w != widget.photo.width)) {
(h != widget.photo.height || w != widget.photo.width)) {
_logger.info('Updating aspect ratio for ${widget.photo} to $h:$w');
await FileMagicService.instance.updatePublicMagicMetadata(
[widget.photo], {publicMagicKeyHeight: h, publicMagicKeyWidth: w});