docs: public CmsImageScaler getWidthScaler(CmsImageScaler downScaler) {
  
          int width = downScaler.getWidth();
          int height;
  
          if (getWidth() > width) {
              // width is too large, re-calculate height
              float scale = (float)width / (float)getWidth();
              height = Math.round(getHeight() * scale);
          } else {
              // width is ok
              width = getWidth();
              height = getHeight();
          }
  
          // now create and initialize the result scaler
          return new CmsImageScaler(downScaler, width, height);
      }