Resize PNG

I have managed to create a system that copy and pastes PNGs whist the game is running for effects I have coded successfully,
now what I would now like to do is resize those PNGs.

Any advise between Canvus and Pixi to make this happen?
What do you mean by added PNG's?
Are you loading the PNG as a texture into a pixi object?
If so, the PIXI.Graphics object you create will have
.scale.set(x, y) function.
@standardplayer well original no I wasn't using this method, I did try it at one point but then couldn't convert the pixi object back into a PNG. Do you know how to do that?
@Indsh I suggest you study some of the mapshot plugins that create a picture from the map data.
those have to write the data as png files to the HDD, and that means they contain functions on how to create a PNG from data.

Original thread: https://forums.rpgmakerweb.com/threads/resize-png.114975/