mirror of
https://github.com/gchq/CyberChef
synced 2024-12-27 21:13:11 +00:00
Add JSDoc to the runEXIF function in Image.js
This commit is contained in:
parent
60fddf837d
commit
82d28242cc
1 changed files with 9 additions and 0 deletions
|
@ -12,6 +12,15 @@ import Utils from "../Utils.js";
|
||||||
* @namespace
|
* @namespace
|
||||||
*/
|
*/
|
||||||
const Image = {
|
const Image = {
|
||||||
|
/**
|
||||||
|
* Extract EXIF operation.
|
||||||
|
*
|
||||||
|
* Extracts EXIF data from a byteArray, representing a JPG or a TIFF image.
|
||||||
|
*
|
||||||
|
* @param {byteArray} input
|
||||||
|
* @param {Object[]} args
|
||||||
|
* @returns {string}
|
||||||
|
*/
|
||||||
runEXIF(input, args) {
|
runEXIF(input, args) {
|
||||||
try {
|
try {
|
||||||
const bytes = Uint8Array.from(input);
|
const bytes = Uint8Array.from(input);
|
||||||
|
|
Loading…
Reference in a new issue