We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e89e817 commit 89b8ea0Copy full SHA for 89b8ea0
1 file changed
src/compare/utils/index.ts
@@ -2,11 +2,6 @@ import { Logger } from '@nestjs/common';
2
import { PNG } from 'pngjs';
3
import { IgnoreAreaDto } from 'src/test-runs/dto/ignore-area.dto';
4
5
-export function pngToBase64(png: PNG): string {
6
- const buffer = PNG.sync.write(png);
7
- return buffer.toString('base64');
8
-}
9
-
10
export function scaleImageToSize(image: PNG, width: number, height: number): PNG {
11
if (width > image.width || height > image.height) {
12
const preparedImage = new PNG({ width, height, fill: true });
0 commit comments