"Had you ever seen it before?" is in the past, it implies that never saw before but now you are seeing for the first time.
"Have you ever seen it before?" is in the present perfect, it means that you didn´t see before and you continue now like before .