S
S
Sergey Sviridonov2018-01-26 13:49:10
JavaScript
Sergey Sviridonov, 2018-01-26 13:49:10

How to pull out geo data from EXIF ​​and place it on the image?

Good afternoon!
The crux of the matter is this, I'm making a blog and the client wants the images to be processed upon loading and the GEO location data of the form: 45.028683, 38.986107
But I'm also considering the option with "pre-batch processing" i.e. I selected 100 photos, pressed start and the program automatically in where someday it will write the whole thing on the photo (impose the coordinates on the image - it takes them from exif).
Is there such a program? If not, how to do it in PHP? where to dig?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Bogachev, 2019-11-11
@Tolly

Because for...in iterates over not exactly what you expect. In your case, it will be more convenient to use some other version of the loop - the same for...of for example.

A
Andrew, 2019-11-11
@KickeRockK

let cur = document.getElementsByClassName('aaa');
You get an html collection that you "can't" apply methods to, like for arrays
Use querySelectorAll and live happily or play with .call Example with forEach

A
Alex McArrow, 2018-01-26
@AlexMcArrow

Dig here -> php.net/manual/ru/book.exif.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question