Skip to content

Commit 89b8ea0

Browse files
committed
Update index.ts
1 parent e89e817 commit 89b8ea0

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/compare/utils/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ import { Logger } from '@nestjs/common';
22
import { PNG } from 'pngjs';
33
import { IgnoreAreaDto } from 'src/test-runs/dto/ignore-area.dto';
44

5-
export function pngToBase64(png: PNG): string {
6-
const buffer = PNG.sync.write(png);
7-
return buffer.toString('base64');
8-
}
9-
105
export function scaleImageToSize(image: PNG, width: number, height: number): PNG {
116
if (width > image.width || height > image.height) {
127
const preparedImage = new PNG({ width, height, fill: true });

0 commit comments

Comments
 (0)