Platform
Resources
Pricing
Sign in
Get started
Fil
Vocateur.
Workspace
Fork
Published
By
Fil
Edited
Jun 11, 2022
1 star
1
Insert cell
Insert cell
piexif
=
FileAttachment
(
"piexifjs-1.0.6.js"
)
.
url
(
)
.
then
(
require
)
// require('https://bundle.run/piexifjs@1.0.6')
Insert cell
Insert cell
Insert cell
exif
=
piexif
.
load
(
`data:image/jpeg;base64,${
_arrayBufferToBase64
(
image
)
}`
)
Insert cell
image
=
fetch
(
src
)
.
then
(
d
=>
d
.
arrayBuffer
(
)
)
Insert cell
function
_arrayBufferToBase64
(
buffer
)
{
var
binary
=
''
;
var
bytes
=
new
Uint8Array
(
buffer
)
;
var
len
=
bytes
.
byteLength
;
for
(
var
i
=
0
;
i
<
len
;
i
++
)
{
binary
+=
String
.
fromCharCode
(
bytes
[
i
]
)
;
}
return
window
.
btoa
(
binary
)
;
}
Insert cell
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
piexif
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
src
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
THUMBNAIL
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
exif
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
image
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
_arrayBufferToBase64
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML