Stefal / mapillary_download

simple code to download images in a mapillary sequence
11 stars 3 forks source link

mapillary_download of a sequence creates 0 Bytes files #15

Open call-me-matt opened 1 month ago

call-me-matt commented 1 month ago

when using the mapillary_download.py to get a sequence, about 30-40% of downloaded pictues are 0 Bytes

see full description here: https://forge.chapril.org/tykayn/mapillary_download/issues/3

traced it down to: https://github.com/Stefal/mapillary_download/blob/d3c69c2027a2e593b47416729745cf3ac4efe575/mapillary_download.py#L39

Error for all 0 Bytes files: Directory Photo: IFD exceeds data buffer, cannot read next pointer. There is a funny annotation in exif-data: Image Data > ImageDescription > {"applied_s236562":true}

I have added two manually downloaded pictures from the sequence_id R59T5DwBwa9W8jH6LJs0xQ, maybe it is easier to debug the exif extraction with these files:

OK:KO:
![ok](https://github.com/user-attachments/assets/570dee1b-b440-45b7-a490-c74d1f867061) ![ko](https://github.com/user-attachments/assets/64ffbc76-2f12-4d2f-88d7-a8cb001fd5b3)
call-me-matt commented 1 month ago

here is my workaround: https://forge.chapril.org/tykayn/mapillary_download/pulls/7/files