src/main/java/de/digitalcollections/iiif/model/image/SizeRequest.java
public Dimension resolve(Rectangle region, ImageApiProfile profile) throws ResolvingException {
    return resolve(
        new Dimension(region.width, region.height),
        profile);
  }
public Dimension resolve(Rectangle region, ImageApiProfile profile) throws ResolvingException {
    return resolve(
        new Dimension(region.width, region.height),
        profile);
  }
Like {@link #resolve(Dimension, ImageApiProfile)}, but can be used with a {@link Rectangle}, e.g. as returned from {@link RegionRequest#resolve(Dimension)}.

@param region image region
@param profile image api profile
@return resolved size dimension
@throws de.digitalcollections.iiif.model.image.ResolvingException if rectangle region can not be resolved