Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions piexif.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
export function load( dataURL: string ): any;
export function dump( exifObject: any ): string;
export function insert( exifData: string, jpegData: string ): string;
export function remove( jpegData: string ): string;

export default _default = {
/**
* Get exif data as object.
* @param dataURL base64 Data Url or "\xff\xd8", or "Exif".
*/
load,
/**
* Get exif as string to insert into JPEG.
* @param exifObject exif object
*/
dump,
/**
* Insert exif into JPEG.
* @param exifData data to pass as a string, use `dump` to convert object to string.
* @param jpegData can be dataURL or binaryString.
* @returns same type as pass to `jpegData`, dataURL or binaryString.
*/
insert,
/**
* Remove exif from JPEG.
* @param jpegData can be dataURL or binaryString.
* @returns same type as pass to `jpegData`, dataURL or binaryString.
*/
remove
};