VectorImage plugin: Reject non-Lottie files faster


Add a simple format check of the start of the file data. This avoids
reading the entire file into memory just to conclude that it is not a
json file at all.

Change-Id: Ief69884f74033a6580cd054a37d3dbca3362a458
Pick-to: 6.10
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit3a060d2cf86421bd7022bb73f78419cf87c28c27
parent2f0bafd8784a310195e71ad7b63af142b311c98a
authorEirik Aavitsland <eirik.aavitsland@qt.io>
committerEirik Aavitsland <eirik.aavitsland@qt.io>
commit timeThu, 26 Jun 2025 14:48:55 +0200