Skip to content

Commit

Permalink
fix(server): type of MediaRepository.writeExif
Browse files Browse the repository at this point in the history
  • Loading branch information
eligao committed Jan 23, 2025
1 parent c7914c2 commit 88e4dc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/repositories/media.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class MediaRepository {
return true;
}

async writeExif(tags: ExifEntity, output: string): Promise<boolean> {
async writeExif(tags: Partial<ExifEntity>, output: string): Promise<boolean> {
try {
const tagsToWrite: WriteTags = {
ExifImageWidth: tags.exifImageWidth,
Expand Down
2 changes: 1 addition & 1 deletion server/src/services/media.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export class MediaService extends BaseService {

// Assume extracted image from RAW always in JPEG format, as implied from the `jpgFromRaw` tag name
const extractedPath = StorageCore.getImagePath(asset, AssetPathType.FULLSIZE, ImageFormat.JPEG);
const didExtract = await this.mediaRepository.extract(asset.originalPath, extractedPath, true);
const didExtract = await this.mediaRepository.extract(asset.originalPath, extractedPath);
useExtracted = didExtract && (await this.shouldUseExtractedImage(extractedPath, image.preview.size));

if (useExtracted) {
Expand Down

0 comments on commit 88e4dc8

Please sign in to comment.