Socialify

Folder ..

Viewing image-converter.ts
22 lines (20 loc) • 457.0 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
import {
  printImage,
  getImageStrings,
} from "https://x.nest.land/[email protected]/mod.ts";
import { environment } from "../environment/environment.ts";

export class ImageConverter {
  width = environment.flagWidth;
  public getImageStrings(path: string) {
    return getImageStrings({
      path,
      width: this.width,
    });
  }

  public printImage(path: string) {
    return printImage({
      path,
      width: this.width,
    });
  }
}