fix(server): correct rotation for common files #26993
test.yml
on: pull_request
pre-job
6s
ShellCheck
7s
OpenAPI Clients
1m 18s
TypeORM Checks
1m 14s
Test & Lint Server
1m 43s
Unit Test CLI
0s
Unit Test CLI (Windows)
0s
Test & Lint Web
0s
End-to-End Lint
0s
Medium Tests (Server)
1m 49s
End-to-End Tests (Server & CLI)
3m 22s
End-to-End Tests (Web)
0s
Unit Test Mobile
0s
Unit Test ML
0s
Annotations
11 errors
TypeORM Checks
Process completed with exit code 1.
|
src/services/media.service.spec.ts > MediaService > handleGenerateThumbnails > should generate P3 thumbnails for a wide gamut image:
server/src/services/media.service.spec.ts#L342
AssertionError: expected "spy" to be called with arguments: [ '/original/path.jpg', …(1) ]
Received:
1st spy call:
Array [
"/original/path.jpg",
Object {
"colorspace": "p3",
+ "isEmbeddedImage": false,
+ "orientation": undefined,
"processInvalidImages": false,
"size": 1440,
},
]
Number of calls: 1
❯ src/services/media.service.spec.ts:342:37
|
src/services/media.service.spec.ts > MediaService > handleGenerateThumbnails > should generate an image preview in jpeg format:
server/src/services/media.service.spec.ts#L520
AssertionError: expected "spy" to be called with arguments: [ '/original/path.jpg', …(1) ]
Received:
1st spy call:
Array [
"/original/path.jpg",
Object {
"colorspace": "srgb",
+ "isEmbeddedImage": false,
+ "orientation": undefined,
"processInvalidImages": false,
"size": 1440,
},
]
Number of calls: 1
❯ src/services/media.service.spec.ts:520:37
|
src/services/media.service.spec.ts > MediaService > handleGenerateThumbnails > should generate an image preview in webp format:
server/src/services/media.service.spec.ts#L520
AssertionError: expected "spy" to be called with arguments: [ '/original/path.jpg', …(1) ]
Received:
1st spy call:
Array [
"/original/path.jpg",
Object {
"colorspace": "srgb",
+ "isEmbeddedImage": false,
+ "orientation": undefined,
"processInvalidImages": false,
"size": 1440,
},
]
Number of calls: 1
❯ src/services/media.service.spec.ts:520:37
|
src/services/media.service.spec.ts > MediaService > handleGenerateThumbnails > should generate an image thumbnail in jpeg format:
server/src/services/media.service.spec.ts#L565
AssertionError: expected "spy" to be called with arguments: [ '/original/path.jpg', …(1) ]
Received:
1st spy call:
Array [
"/original/path.jpg",
Object {
"colorspace": "srgb",
+ "isEmbeddedImage": false,
+ "orientation": undefined,
"processInvalidImages": false,
"size": 1440,
},
]
Number of calls: 1
❯ src/services/media.service.spec.ts:565:37
|
src/services/media.service.spec.ts > MediaService > handleGenerateThumbnails > should generate an image thumbnail in webp format:
server/src/services/media.service.spec.ts#L565
AssertionError: expected "spy" to be called with arguments: [ '/original/path.jpg', …(1) ]
Received:
1st spy call:
Array [
"/original/path.jpg",
Object {
"colorspace": "srgb",
+ "isEmbeddedImage": false,
+ "orientation": undefined,
"processInvalidImages": false,
"size": 1440,
},
]
Number of calls: 1
❯ src/services/media.service.spec.ts:565:37
|
src/services/media.service.spec.ts > MediaService > handleGenerateThumbnails > should extract embedded image if enabled and available:
server/src/services/media.service.spec.ts#L617
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
Array [
"upload/thumbs/user-id/as/se/2f9bdd95-a56c-43fa-8883-0f284e8305f2.tmp",
Object {
"colorspace": "p3",
+ "isEmbeddedImage": true,
+ "orientation": undefined,
"processInvalidImages": false,
"size": 1440,
},
]
Number of calls: 1
❯ src/services/media.service.spec.ts:617:37
|
src/services/media.service.spec.ts > MediaService > handleGenerateThumbnails > should resize original image if embedded image is too small:
server/src/services/media.service.spec.ts#L635
AssertionError: expected "spy" to be called with arguments: [ '/original/path.dng', …(1) ]
Received:
1st spy call:
Array [
"/original/path.dng",
Object {
"colorspace": "p3",
+ "isEmbeddedImage": true,
+ "orientation": undefined,
"processInvalidImages": false,
"size": 1440,
},
]
Number of calls: 1
❯ src/services/media.service.spec.ts:635:37
|
src/services/media.service.spec.ts > MediaService > handleGenerateThumbnails > should resize original image if embedded image not found:
server/src/services/media.service.spec.ts#L652
AssertionError: expected "spy" to be called with arguments: [ '/original/path.dng', …(1) ]
Received:
1st spy call:
Array [
"/original/path.dng",
Object {
"colorspace": "p3",
+ "isEmbeddedImage": false,
+ "orientation": undefined,
"processInvalidImages": false,
"size": 1440,
},
]
Number of calls: 1
❯ src/services/media.service.spec.ts:652:37
|
src/services/media.service.spec.ts > MediaService > handleGenerateThumbnails > should resize original image if embedded image extraction is not enabled:
server/src/services/media.service.spec.ts#L668
AssertionError: expected "spy" to be called with arguments: [ '/original/path.dng', …(1) ]
Received:
1st spy call:
Array [
"/original/path.dng",
Object {
"colorspace": "p3",
+ "isEmbeddedImage": false,
+ "orientation": undefined,
"processInvalidImages": false,
"size": 1440,
},
]
Number of calls: 1
❯ src/services/media.service.spec.ts:668:37
|
Test & Lint Server
Process completed with exit code 1.
|