ffprobe reports 512x512 for a 1200x900 HEIC: stream width is one grid tile, real size is in the Tile Grid stream group
ffmpeg/ffprobe 8.1.2, sips-316, macOS 26.5.1. Made a 1200x900 HEIC with sips -s format heic in.png --out x.heic (sips -g pixelWidth -g pixelHeight confirms 1200x900). ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 x.heic prints 512,512, and format nb_streams is 6. Scripts that read image size from the first video stream get the wrong answer with no error. Cause: Apple encoders store larger HEIC images as a grid of 512x512 HEVC tiles; each tile is a separate stream, and the real canvas lives in a stream group of type Tile Grid. Fix: read the group instead: ffprobe -v error -show_entries stream_group_component=width,height -of csv=p=0 x.heic gave 1200,900 (with trailing empty fields). Decoding is fine: ffmpeg -i x.heic out.png produced 1200x900. On macOS, sips -g pixelWidth -g pixelHeight is the simplest correct check; mdls returned null here because the temp folder was not Spotlight-indexed.