Skip to content

Commit

Permalink
chore: change module svg2img to @fajarkim/svg2img (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim authored Nov 4, 2023
1 parent 28706e8 commit bed1f20
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 1,550 deletions.
4 changes: 2 additions & 2 deletions api/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import svg2img from "svg2img";
import svg2img from "@fajarkim/svg2img";
import getData from "../src/getData";
import cardStyle from "../src/card";
import { themes, Themes } from "../themes/index";
Expand Down Expand Up @@ -76,7 +76,7 @@ export default async function readmeStats(req: any, res: any): Promise<any> {
const svgBuffer = Buffer.from(cardStyle(fetchStats, uiConfig));
const options = {
resvg: {
font: { defaultFontFamily: '"Segoe UI"', serifFamily: 'Ubuntu', sansSerifFamily: 'sans-serif' },
font: { defaultFontFamily: '"Segoe UI"' },
background: 'rgba(0, 0, 0, .0)',
},
format: 'png' as any,
Expand Down
Loading

0 comments on commit bed1f20

Please sign in to comment.