Spexism
Prejudice, stereotyping, or discrimination targeting those who wear glasses.

Eg, usage of the term "four-eyes", or the assumption that all bespectacled people look the same.

A perpetrator of spexism is called a 'Spexist'.
"Oi! Harry Potter!"

"Do you see a lightning scar?! Blatant spexism."