Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoterryy committed Nov 8, 2024
1 parent e5015b8 commit b480895
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions server/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ export const CLIP_MODEL_INFO: Record<string, ModelInfo> = {
};

type SharpRotationData = {
angle?: number,
flip?: boolean,
flop?: boolean,
angle?: number;
flip?: boolean;
flop?: boolean;
};
export const ORIENTATION_TO_SHARP_ROTATION: Record<ExifOrientation, SharpRotationData> = {
[ExifOrientation.Horizontal]: { angle: 0, },
[ExifOrientation.Horizontal]: { angle: 0 },
[ExifOrientation.MirrorHorizontal]: { angle: 0, flop: true },
[ExifOrientation.Rotate180]: { angle: 180 },
[ExifOrientation.MirrorVertical]: { angle: 180, flop: true },
Expand Down
1 change: 0 additions & 1 deletion server/src/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,4 +384,3 @@ export enum ExifOrientation {
MirrorHorizontalRotate90CW = 7,
Rotate270CW = 8,
}

0 comments on commit b480895

Please sign in to comment.