Exactly where that tomato came from is in dispute. Though Rick Wakeman is almost certainly full of sh*t (he like to tell tall tales)
Wikipedia recap:
Wakeman claimed to have thrown a tomato at the pictures taken for the album as he recalled the band were disappointed with the initial artwork which had cost a lot of money.
[8] The album's title and cover was changed accordingly.
[33][34] Howe said it was someone at Hipgnosis who threw the tomato and they did so on purpose, which insulted him.
[32] According to White, the band was unable to decide on a cover: "I think
Po ... put a picture of a guy with divining sticks on the front. He took it home one night and decided it wasn't working. So he threw a tomato at it".
[32] Yes manager
Brian Lane said the band disliked the pictures that Hipgnosis had taken at Yes Tor, "and we threw the tomatoes. [...] It wasn't Rick".
[20]