Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add piexif.d.ts #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 30 additions & 0 deletions piexif.d.ts
@@ -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
};