Putting a higher value in the height resize the image correctly but shouldn't work like this since I'd like to resize images based on the width regardless of the height that should work also if I input 0 or no value I think.
That's what I was referring to. It's a workaround for now, and then we'll address the issue in a future update. If you only want the width to be considered, and not the height, just use a very large value for the height that's unlikely to be exceeded, such as 10000.