if (width == null || height == null) {
return item;
}
StorageItem override = StorageItem.Static.createIn(item.getStorage());
new ObjectMap(override).putAll(new ObjectMap(item));
CollectionUtils.putByPath(override.getMetadata(), ORIGINAL_WIDTH_METADATA_PATH, ImageTag.findDimension(item, "width"));
CollectionUtils.putByPath(override.getMetadata(), ORIGINAL_HEIGHT_METADATA_PATH, ImageTag.findDimension(item, "height"));
boolean overridden = ImageResizeStorageItemListener.overridePathWithNearestSize(override,
width, height);