> Do you think this is possible in general (without decoding the gif)? > > Carl Eugen I was hoping there was some kind of magic number or number of frames in the header. But I guess from your answer, that's not the case. Anyway, I solved the issue in some other way.