Questions tagged [exif-js]

JavaScript library for reading EXIF image metadata

github

https://github.com/exif-js/exif-js

syntax

EXIF.getData(img, function() {
  var allMetaData = EXIF.getAllTags(this);
});

demo

http://htmlpreview.github.io/?https://github.com/exif-js/exif-js/blob/master/example/index.html

49 questions
0
votes
1 answer

Can't get a orientation from image

I'm working on a solution to fix an issue in which images made from certain phones appear either sideways or upside down due to them having orientation in the exif data. So far I have that I get orientation, but this variable in not passed back in…
nev3rm0re
  • 60
  • 5
0
votes
1 answer

How Show Variable in onchange Method in VueJS?

How Can Show Variable in Page if its on onchange Method. for Example this Code: methods: { onChange(image) { if (image) { EXIF.getData(this.$refs.pictureInput.file, function () { var make = EXIF.getTag(this, "Make"), …
0
votes
1 answer

Can exif-parser extract XMP (Extensible Metadata Platform) tags?

I'm looking for a Javascript package to extract an extended image tag Projection Type to detect between image with projection (e.g. sphere image) and image without projection. I found another Javascript library (exifreader) that extracts XMP…
Avner Moshkovitz
  • 1,138
  • 1
  • 18
  • 35
0
votes
0 answers

Get EXIF data from a jpg image in Ionic 4

So here is a little context to this question. I am currently building an app in Ionic v4 and in it I am creating a custom image viewer (more like an entire gallery). I am using the native File plugin to get all image file paths and then show them in…
0
votes
1 answer

Improve the getExif function

I'm currently bulding a website that allows users to load a picture into a preview area and then they can press a button to get the EXIF info shown. I'm using the exif.js library to make this work using a function called "getExif"... At the moment…
Rafael Lopes
  • 63
  • 1
  • 8
0
votes
0 answers

Exif return value of -6

I have the following javascript that I am trying to use to check the rotation of my images on preview. Some of my images are being rotated on preview so I am trying to use the exif library to handle the rotation. In the code below, I am getting…
BEP
  • 39
  • 6
0
votes
1 answer

Vue.js: Get src of an Image and pass it to another call

as I tried to explain in my headline: I'm currently trying to get into Vue.js and overall everything I've tried worked up to this point. Now I want to include exif.js to read the exif-data of an image I uploaded to my App. Im also using Laravel,…
Brecherchef
  • 401
  • 6
  • 22
0
votes
1 answer

Exif-js doesn't seem to work with local photos

I'm having a bit of a weird problem with my javascript code... It basically consists of a script that accesses the exif of a photo and then shows it on an HTML page, more specifically the latitude and longitude of it. The idea is to then use both…
Rafael Lopes
  • 63
  • 1
  • 8
0
votes
1 answer

Can't access variable value outside function [JavaScript]

I'm having a problem with my javascript code. It basically consists of a script that accesses the exif of a photo and then shows it on an HTML page, more specifically the latitude and longitude of it. The idea is to then use both the latitude and…
Rafael Lopes
  • 63
  • 1
  • 8
0
votes
2 answers

Exif.js always returns "undefined"

I'm currently developing a simple WEB Application that allows users to upload a photo. That photo's EXIF GPS data is then supposed to be extracted to a variable that will then be used in a google maps widget, with a "pin" on the location of…
Rafael Lopes
  • 63
  • 1
  • 8
0
votes
2 answers

bug:ReferenceError: self is not defined exif-js

Am getting an error while finding the exif information of an image (base64 image data): Exif.getData(path, () => { const tag = Exif.getTag(this, 'Orientation'); console.log(tag); }); ReferenceError: self is not…
Anand Paul
  • 355
  • 5
  • 17
0
votes
0 answers

exif-js not working anymore in laravel 5.5

I can't find a solution to this problem. In laravel 5.2 all I needed was to install the npm package and then in app.js add this line: window.EXIF = require('exif-js'); now in laravel 5.5 there's this new bootstrap.js file where you are supposed to…
Chriz74
  • 1,410
  • 3
  • 23
  • 47
0
votes
1 answer

Trying to fix the orientation of image on client side with jQuery. [EXIF is not defined]

I am trying to detect the EXIF data (Orientation) of an image and show it without being rotated when selected. For the image preview the FileReader API is being used. I was able to fix server side orientation but for frontend I have having…
Saurabh
  • 2,655
  • 1
  • 20
  • 47
0
votes
1 answer

onChange event not triggering

I'm currently working within a third party software forms system that allows users to upload an image. What I'm trying to achieve is on the upload area change is to grab the exif of the image and show an alert of its info. (with the plan being to…
Alex
  • 673
  • 3
  • 9
  • 22
0
votes
2 answers

Extracting EXIF data (specifically dateTime and GPSLatitude and GPSLongitude) with JavaScript

I have a program where a camera is set up to constantly take pictures (about every 10 seconds or so) and the picture is sent to a folder on my server and then another program refreshes that folder constantly so that I always just have the most…
AmericanMade
  • 453
  • 1
  • 9
  • 22