for (let y = 0; y < new_height; y++) {
      const { r, g, b, a } = resized.getPixel(x, y);
      pixelSetter(x, y, [r, g, b, a], newPix);
    }