def getPixelDimens(image, dimens):
	"""Get the pixel dimensions for an image from one of the following:
	pixel (no calculation): int, percent: "val%", scale: "valx"

	Args:
		image (PIL.Image.Image): Input image
		dimens ([int|str]): One of pixel, percent, scale

	Returns:
		int: outDimens in pixels
	"""
	outDimens = []
	for index, dimen in enumerate(dimens):
		if isinstance(dimen, int):
			outDimens.append(dimen)
		if isinstance(dimen, str):
			if len(dimens) == 1:
				size = min(image.size)
			else:
				size = image.size[index]
			if dimen[-1] == "%":
				outDimens.append(int(size * int(dimen[:-1]) / 100))
			if dimen[-1] == "x":
				outDimens.append(int(size * float(dimen[:-1])))
	return outDimens