download svg to png size image

const w = parseInt(svg.getAttribute('width'));
const h = parseInt(svg.getAttribute('height'));

Change those 2 lines so that w and h have the desired values.

E.g.

const w = 101;

Will make the result 101 pixels wide

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)