Skip to content

Commit

Permalink
feat: include FileSize and Checksum in Asset conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
simulot committed Mar 9, 2025
1 parent 8d565d4 commit 14b0561
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion immich/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ func (ia Asset) AsAsset() *assets.Asset {
Latitude: ia.ExifInfo.Latitude,
Longitude: ia.ExifInfo.Longitude,
File: fshelper.FSName(nil, ia.OriginalFileName),
FileSize: int(ia.ExifInfo.FileSizeInByte),
Checksum: ia.Checksum,
}
a.FileSize = int(ia.ExifInfo.FileSizeInByte)
for _, album := range ia.Albums {
a.Albums = append(a.Albums, assets.Album{
Title: album.AlbumName,
Expand Down

0 comments on commit 14b0561

Please # to comment.