Skip to content

Commit

Permalink
fix(server): correct rotation for common files (immich-app#14092)
Browse files Browse the repository at this point in the history
* fix(server): correct rotation for common files

* fix: test:

* pr feedback
  • Loading branch information
alextran1502 authored and yosit committed Nov 21, 2024
1 parent 2f2abc8 commit a6bba43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/services/media.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export class MediaService extends BaseService {
const colorspace = this.isSRGB(asset) ? Colorspace.SRGB : image.colorspace;
const processInvalidImages = process.env.IMMICH_PROCESS_INVALID_IMAGES === 'true';

const orientation = Number(asset.exifInfo?.orientation) || undefined;
const orientation = useExtracted && asset.exifInfo?.orientation ? Number(asset.exifInfo.orientation) : undefined;
const decodeOptions = { colorspace, processInvalidImages, size: image.preview.size, orientation };
const { data, info } = await this.mediaRepository.decodeImage(inputPath, decodeOptions);

Expand Down

0 comments on commit a6bba43

Please sign in to comment.