PHP extract GPS EXIF data

前端 未结 13 1424
执笔经年
执笔经年 2020-11-29 16:26

I would like to extract the GPS EXIF tag from pictures using php. I\'m using the exif_read_data() that returns a array of all tags + data :

GPS.         


        
13条回答
  •  迷失自我
    2020-11-29 16:36

    I'm using the modified version from Gerald Kaszuba but it's not accurate. so i change the formula a bit.

    from:

    return $flip * ($degrees + $minutes / 60);
    

    changed to:

    return floatval($flip * ($degrees +($minutes/60)+($seconds/3600)));
    

    It works for me.

提交回复
热议问题