Change size png in code?

Hi everyone
is there code(script) ( c#api)or plugin
To change size of the all png images file in one folder{for example for icon component pixel or 32×32 pixel and other size…) ? Without decreases (dpi)in grasshopper?
@mahdiyar