getOutputDimension() {
    const { width, height } = this.option.resize;
    if (!width && !height) {
      return {
        width: this.info.width,
        height: this.info.height,
      };
    }

    if (!width && height) {
      const rate = height / this.info.height;
      const width = rate * this.info.width;
      return {
        width: Math.ceil(width),
        height: Math.ceil(height),
      };
    }

    if (width && !height) {
      const rate = width / this.info.width;
      const height = rate * this.info.height;
      return {
        width: Math.ceil(width),
        height: Math.ceil(height),
      };
    }

    return {
      width: Math.ceil(width),
      height: Math.ceil(height),
    };
  }
Get output image dimension, based on resize param
@returns Dimension