@girs/gexiv2-0.10 0.14.2-3.2.6 → 0.14.2-3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/gexiv2-0.10.d.cts +57 -57
- package/gexiv2-0.10.d.ts +57 -57
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GExiv2-0.10, generated from library version 0.14.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for GExiv2-0.10, generated from library version 0.14.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
gexiv2 is a GObject wrapper around the Exiv2 photo metadata library. It allows for GNOME applications to easily inspect and update EXIF, IPTC, and XMP metadata in photo and video files of various formats
|
|
11
11
|
|
package/gexiv2-0.10.d.cts
CHANGED
|
@@ -196,7 +196,7 @@ export function log_use_glib_logging(): void
|
|
|
196
196
|
* @param msg The log message
|
|
197
197
|
*/
|
|
198
198
|
export interface LogHandler {
|
|
199
|
-
(level: LogLevel, msg: string
|
|
199
|
+
(level: LogLevel, msg: string): void
|
|
200
200
|
}
|
|
201
201
|
export module Metadata {
|
|
202
202
|
|
|
@@ -239,7 +239,7 @@ export interface Metadata {
|
|
|
239
239
|
* @param tag Exiv2 tag
|
|
240
240
|
* @returns TRUE if the tag was present.
|
|
241
241
|
*/
|
|
242
|
-
clear_tag(tag: string
|
|
242
|
+
clear_tag(tag: string): boolean
|
|
243
243
|
/**
|
|
244
244
|
* Clears all XMP metadata from the loaded image.
|
|
245
245
|
*/
|
|
@@ -306,7 +306,7 @@ export interface Metadata {
|
|
|
306
306
|
* @param tag The tag you want the rational value for
|
|
307
307
|
* @returns Boolean success value
|
|
308
308
|
*/
|
|
309
|
-
get_exif_tag_rational(tag: string
|
|
309
|
+
get_exif_tag_rational(tag: string): [ /* returnType */ boolean, /* nom */ number, /* den */ number ]
|
|
310
310
|
/**
|
|
311
311
|
* Query `self` for a list of available EXIF tags
|
|
312
312
|
* @returns A unique list of the available EXIF tags in the loaded image
|
|
@@ -384,7 +384,7 @@ export interface Metadata {
|
|
|
384
384
|
* Query mime type of currently loaded image.
|
|
385
385
|
* @returns The MIME type of the loaded image, %NULL if not loaded or unknown.
|
|
386
386
|
*/
|
|
387
|
-
get_mime_type(): string
|
|
387
|
+
get_mime_type(): string
|
|
388
388
|
/**
|
|
389
389
|
* The EXIF Orientation field
|
|
390
390
|
* @returns A #GExiv2Orientation value representing the EXIF orientation value.
|
|
@@ -437,13 +437,13 @@ export interface Metadata {
|
|
|
437
437
|
* @param tag Exiv2 tag name
|
|
438
438
|
* @returns The tag's interpreted value as a string
|
|
439
439
|
*/
|
|
440
|
-
get_tag_interpreted_string(tag: string
|
|
440
|
+
get_tag_interpreted_string(tag: string): string | null
|
|
441
441
|
/**
|
|
442
442
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
443
443
|
* @param tag Exiv2 tag name
|
|
444
444
|
* @returns The tag's value as a glong
|
|
445
445
|
*/
|
|
446
|
-
get_tag_long(tag: string
|
|
446
|
+
get_tag_long(tag: string): number
|
|
447
447
|
/**
|
|
448
448
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
449
449
|
*
|
|
@@ -453,7 +453,7 @@ export interface Metadata {
|
|
|
453
453
|
* @param tag Exiv2 tag name
|
|
454
454
|
* @returns The multiple string values of the tag. Returns %NULL if parameters are %NULL or @tag does not begin with recognised type of metadata ("Exif.", "Xmp." or "Iptc."). For a well formed @tag, returns array[0] = %NULL if @tag is undefined or is not set in the current metadata. (Note: <ulink url="https://gitlab.gnome.org/GNOME/gexiv2/-/issues/61">xmpText/langAlt bug</ulink> is fixed in gexiv2_metadata_try_get_tag_multiple())
|
|
455
455
|
*/
|
|
456
|
-
get_tag_multiple(tag: string
|
|
456
|
+
get_tag_multiple(tag: string): string[] | null
|
|
457
457
|
/**
|
|
458
458
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
459
459
|
*
|
|
@@ -462,7 +462,7 @@ export interface Metadata {
|
|
|
462
462
|
* @param tag Exiv2 tag name
|
|
463
463
|
* @returns The tag's raw value as a byte array
|
|
464
464
|
*/
|
|
465
|
-
get_tag_raw(tag: string
|
|
465
|
+
get_tag_raw(tag: string): GLib.Bytes | null
|
|
466
466
|
/**
|
|
467
467
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
468
468
|
*
|
|
@@ -474,7 +474,7 @@ export interface Metadata {
|
|
|
474
474
|
* @param tag Exiv2 tag name
|
|
475
475
|
* @returns The tag's value as a string
|
|
476
476
|
*/
|
|
477
|
-
get_tag_string(tag: string
|
|
477
|
+
get_tag_string(tag: string): string | null
|
|
478
478
|
get_xmp_packet(): string | null
|
|
479
479
|
get_xmp_tags(): string[]
|
|
480
480
|
has_exif(): boolean
|
|
@@ -484,7 +484,7 @@ export interface Metadata {
|
|
|
484
484
|
* @param tag Exiv2 tag
|
|
485
485
|
* @returns TRUE if the tag is present.
|
|
486
486
|
*/
|
|
487
|
-
has_tag(tag: string
|
|
487
|
+
has_tag(tag: string): boolean
|
|
488
488
|
has_xmp(): boolean
|
|
489
489
|
/**
|
|
490
490
|
* The buffer must be an image format supported by Exiv2.
|
|
@@ -497,26 +497,26 @@ export interface Metadata {
|
|
|
497
497
|
* @param path Path to the file you want to open
|
|
498
498
|
* @returns Boolean success indicator
|
|
499
499
|
*/
|
|
500
|
-
open_path(path: string
|
|
500
|
+
open_path(path: string): boolean
|
|
501
501
|
/**
|
|
502
502
|
* Saves the metadata to the specified using an XMP sidecar file.
|
|
503
503
|
* @param path Path to the file you want to save to.
|
|
504
504
|
* @returns Boolean success indicator.
|
|
505
505
|
*/
|
|
506
|
-
save_external(path: string
|
|
506
|
+
save_external(path: string): boolean
|
|
507
507
|
/**
|
|
508
508
|
* Saves the metadata to the specified file by reading the file into memory,copying this object's
|
|
509
509
|
* metadata into the image, then writing the image back out.
|
|
510
510
|
* @param path Path to the file you want to save to.
|
|
511
511
|
* @returns Boolean success indicator.
|
|
512
512
|
*/
|
|
513
|
-
save_file(path: string
|
|
513
|
+
save_file(path: string): boolean
|
|
514
514
|
/**
|
|
515
515
|
* This is a composite setter that will set a number of fields to the supplied value. See
|
|
516
516
|
* #gexiv2_metadata_get_comment for more information.
|
|
517
517
|
* @param comment Comment string to set. Must not be %NULL
|
|
518
518
|
*/
|
|
519
|
-
set_comment(comment: string
|
|
519
|
+
set_comment(comment: string): void
|
|
520
520
|
/**
|
|
521
521
|
* Set EXIF `tag` represented by a fraction, with `nom` being the numerator,
|
|
522
522
|
* `den` the denominator of the fraction.
|
|
@@ -525,14 +525,14 @@ export interface Metadata {
|
|
|
525
525
|
* @param den Rational denominator
|
|
526
526
|
* @returns Boolean success value
|
|
527
527
|
*/
|
|
528
|
-
set_exif_tag_rational(tag: string
|
|
528
|
+
set_exif_tag_rational(tag: string, nom: number, den: number): boolean
|
|
529
529
|
set_exif_thumbnail_from_buffer(buffer: Uint8Array): void
|
|
530
530
|
/**
|
|
531
531
|
* Sets or replaces the EXIF thumbnail with the image in the file
|
|
532
532
|
* @param path Path of image file
|
|
533
533
|
* @returns Boolean success value
|
|
534
534
|
*/
|
|
535
|
-
set_exif_thumbnail_from_file(path: string
|
|
535
|
+
set_exif_thumbnail_from_file(path: string): boolean
|
|
536
536
|
/**
|
|
537
537
|
* Convenience function to create a new set of simple GPS data. Warning: Will remove any other
|
|
538
538
|
* GPS information that is currently set. See gexiv2_metadata_update_gps_info() for
|
|
@@ -564,7 +564,7 @@ export interface Metadata {
|
|
|
564
564
|
* @param value The value to set or replace the existing value
|
|
565
565
|
* @returns TRUE on success
|
|
566
566
|
*/
|
|
567
|
-
set_tag_long(tag: string
|
|
567
|
+
set_tag_long(tag: string, value: number): boolean
|
|
568
568
|
/**
|
|
569
569
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
570
570
|
*
|
|
@@ -579,7 +579,7 @@ export interface Metadata {
|
|
|
579
579
|
* @param values An array of values to set or replace the existing value(s)
|
|
580
580
|
* @returns Boolean success value
|
|
581
581
|
*/
|
|
582
|
-
set_tag_multiple(tag: string
|
|
582
|
+
set_tag_multiple(tag: string, values: string[]): boolean
|
|
583
583
|
/**
|
|
584
584
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
585
585
|
*
|
|
@@ -593,14 +593,14 @@ export interface Metadata {
|
|
|
593
593
|
* @param value The value to set or replace the existing value
|
|
594
594
|
* @returns TRUE on success
|
|
595
595
|
*/
|
|
596
|
-
set_tag_string(tag: string
|
|
596
|
+
set_tag_string(tag: string, value: string): boolean
|
|
597
597
|
/**
|
|
598
598
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
599
599
|
* @param tag Exiv2 tag name
|
|
600
600
|
* @param type The GExiv2StructureType specifying the type of structure
|
|
601
601
|
* @returns TRUE on success
|
|
602
602
|
*/
|
|
603
|
-
set_xmp_tag_struct(tag: string
|
|
603
|
+
set_xmp_tag_struct(tag: string, type: StructureType): boolean
|
|
604
604
|
/**
|
|
605
605
|
* Removes the Exiv2 tag from the metadata object.
|
|
606
606
|
*
|
|
@@ -608,7 +608,7 @@ export interface Metadata {
|
|
|
608
608
|
* @param tag Exiv2 tag
|
|
609
609
|
* @returns TRUE if the tag was present.
|
|
610
610
|
*/
|
|
611
|
-
try_clear_tag(tag: string
|
|
611
|
+
try_clear_tag(tag: string): boolean
|
|
612
612
|
/**
|
|
613
613
|
* Removes all GPS metadata from the loaded image
|
|
614
614
|
*/
|
|
@@ -655,7 +655,7 @@ export interface Metadata {
|
|
|
655
655
|
* @param tag The tag you want the rational value for
|
|
656
656
|
* @returns Boolean success value
|
|
657
657
|
*/
|
|
658
|
-
try_get_exif_tag_rational(tag: string
|
|
658
|
+
try_get_exif_tag_rational(tag: string): [ /* returnType */ boolean, /* nom */ number, /* den */ number ]
|
|
659
659
|
/**
|
|
660
660
|
* Returns the exposure time in seconds (shutter speed, <emphasis>not</emphasis> date-time of exposure) as a
|
|
661
661
|
* rational. See <ulink url="https://en.wikipedia.org/wiki/Shutter_speed"></ulink> for more information.
|
|
@@ -730,19 +730,19 @@ export interface Metadata {
|
|
|
730
730
|
* @param tag Exiv2 tag name
|
|
731
731
|
* @returns The tag's interpreted value as a string
|
|
732
732
|
*/
|
|
733
|
-
try_get_tag_interpreted_string(tag: string
|
|
733
|
+
try_get_tag_interpreted_string(tag: string): string | null
|
|
734
734
|
/**
|
|
735
735
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
736
736
|
* @param tag Exiv2 tag name
|
|
737
737
|
* @returns The tag's value as a glong
|
|
738
738
|
*/
|
|
739
|
-
try_get_tag_long(tag: string
|
|
739
|
+
try_get_tag_long(tag: string): number
|
|
740
740
|
/**
|
|
741
741
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
742
742
|
* @param tag Exiv2 tag name
|
|
743
743
|
* @returns The multiple string values of @tag. Returns %NULL if parameters are %NULL or @tag does not begin with recognised type of metadata ("Exif.", "Xmp." or "Iptc."). For a well formed @tag, returns array[0] = %NULL if @tag is undefined or is not set in the current metadata.
|
|
744
744
|
*/
|
|
745
|
-
try_get_tag_multiple(tag: string
|
|
745
|
+
try_get_tag_multiple(tag: string): string[] | null
|
|
746
746
|
/**
|
|
747
747
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
748
748
|
*
|
|
@@ -751,7 +751,7 @@ export interface Metadata {
|
|
|
751
751
|
* @param tag Exiv2 tag name
|
|
752
752
|
* @returns The tag's raw value as a byte array
|
|
753
753
|
*/
|
|
754
|
-
try_get_tag_raw(tag: string
|
|
754
|
+
try_get_tag_raw(tag: string): GLib.Bytes | null
|
|
755
755
|
/**
|
|
756
756
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
757
757
|
*
|
|
@@ -759,20 +759,20 @@ export interface Metadata {
|
|
|
759
759
|
* @param tag Exiv2 tag name
|
|
760
760
|
* @returns The tag's value as a string
|
|
761
761
|
*/
|
|
762
|
-
try_get_tag_string(tag: string
|
|
762
|
+
try_get_tag_string(tag: string): string | null
|
|
763
763
|
try_get_xmp_packet(): string | null
|
|
764
764
|
/**
|
|
765
765
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
766
766
|
* @param tag Exiv2 tag
|
|
767
767
|
* @returns TRUE if the tag is present.
|
|
768
768
|
*/
|
|
769
|
-
try_has_tag(tag: string
|
|
769
|
+
try_has_tag(tag: string): boolean
|
|
770
770
|
/**
|
|
771
771
|
* This is a composite setter that will set a number of fields to the supplied value. See
|
|
772
772
|
* #gexiv2_metadata_get_comment for more information.
|
|
773
773
|
* @param comment Comment string to set. Must not be %NULL
|
|
774
774
|
*/
|
|
775
|
-
try_set_comment(comment: string
|
|
775
|
+
try_set_comment(comment: string): void
|
|
776
776
|
/**
|
|
777
777
|
* Set EXIF `tag` represented by a fraction, with `nom` being the numerator,
|
|
778
778
|
* `den` the denominator of the fraction.
|
|
@@ -781,7 +781,7 @@ export interface Metadata {
|
|
|
781
781
|
* @param den Rational denominator
|
|
782
782
|
* @returns Boolean success value
|
|
783
783
|
*/
|
|
784
|
-
try_set_exif_tag_rational(tag: string
|
|
784
|
+
try_set_exif_tag_rational(tag: string, nom: number, den: number): boolean
|
|
785
785
|
try_set_exif_thumbnail_from_buffer(buffer: Uint8Array): void
|
|
786
786
|
/**
|
|
787
787
|
* Convenience function to create a new set of simple GPS data. Warning: Will remove any other
|
|
@@ -814,7 +814,7 @@ export interface Metadata {
|
|
|
814
814
|
* @param value The value to set or replace the existing value
|
|
815
815
|
* @returns TRUE on success
|
|
816
816
|
*/
|
|
817
|
-
try_set_tag_long(tag: string
|
|
817
|
+
try_set_tag_long(tag: string, value: number): boolean
|
|
818
818
|
/**
|
|
819
819
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
820
820
|
*
|
|
@@ -825,7 +825,7 @@ export interface Metadata {
|
|
|
825
825
|
* @param values An array of values to set or replace the existing value(s)
|
|
826
826
|
* @returns Boolean success value
|
|
827
827
|
*/
|
|
828
|
-
try_set_tag_multiple(tag: string
|
|
828
|
+
try_set_tag_multiple(tag: string, values: string[]): boolean
|
|
829
829
|
/**
|
|
830
830
|
* If a tag supports multiple values, then `value` is added to any existing values. For single
|
|
831
831
|
* tags, `value` replaces the value.
|
|
@@ -835,14 +835,14 @@ export interface Metadata {
|
|
|
835
835
|
* @param value The value to set or replace the existing value
|
|
836
836
|
* @returns TRUE on success
|
|
837
837
|
*/
|
|
838
|
-
try_set_tag_string(tag: string
|
|
838
|
+
try_set_tag_string(tag: string, value: string): boolean
|
|
839
839
|
/**
|
|
840
840
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
841
841
|
* @param tag Exiv2 tag name
|
|
842
842
|
* @param type The GExiv2StructureType specifying the type of structure
|
|
843
843
|
* @returns TRUE on success
|
|
844
844
|
*/
|
|
845
|
-
try_set_xmp_tag_struct(tag: string
|
|
845
|
+
try_set_xmp_tag_struct(tag: string, type: StructureType): boolean
|
|
846
846
|
/**
|
|
847
847
|
* The Exiv2 Tag Reference can be found at <ulink url="https://www.exiv2.org/metadata.html"></ulink>
|
|
848
848
|
*
|
|
@@ -852,7 +852,7 @@ export interface Metadata {
|
|
|
852
852
|
* @param tag An Exiv2 tag
|
|
853
853
|
* @returns Whether @tag is capable of storing multiple values or not. If @tag is undefined (i.e. not built-in and not added to @self), then @error is set and %FALSE is returned.
|
|
854
854
|
*/
|
|
855
|
-
try_tag_supports_multiple_values(tag: string
|
|
855
|
+
try_tag_supports_multiple_values(tag: string): boolean
|
|
856
856
|
/**
|
|
857
857
|
* Convenience function to update longitude, latitude and altitude at once.
|
|
858
858
|
* @param longitude Longitude value to set or replace current value
|
|
@@ -912,13 +912,13 @@ export class Metadata extends GObject.Object {
|
|
|
912
912
|
* @param tag An Exiv2 tag
|
|
913
913
|
* @returns The tag's description
|
|
914
914
|
*/
|
|
915
|
-
static get_tag_description(tag: string
|
|
915
|
+
static get_tag_description(tag: string): string | null
|
|
916
916
|
/**
|
|
917
917
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
918
918
|
* @param tag An Exiv2 tag
|
|
919
919
|
* @returns The tag's label
|
|
920
920
|
*/
|
|
921
|
-
static get_tag_label(tag: string
|
|
921
|
+
static get_tag_label(tag: string): string | null
|
|
922
922
|
/**
|
|
923
923
|
* The names of the various Exiv2 tag types can be found at Exiv2::TypeId,
|
|
924
924
|
* <ulink url="http://exiv2.org/doc/namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450c"></ulink>
|
|
@@ -927,39 +927,39 @@ export class Metadata extends GObject.Object {
|
|
|
927
927
|
* @param tag An Exiv2 tag
|
|
928
928
|
* @returns The tag's type name.
|
|
929
929
|
*/
|
|
930
|
-
static get_tag_type(tag: string
|
|
931
|
-
static get_xmp_namespace_for_tag(tag: string
|
|
930
|
+
static get_tag_type(tag: string): string | null
|
|
931
|
+
static get_xmp_namespace_for_tag(tag: string): string | null
|
|
932
932
|
/**
|
|
933
933
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
934
934
|
* @param tag An Exiv2 tag
|
|
935
935
|
* @returns TRUE if the Exiv2 tag is for the EXIF domain.
|
|
936
936
|
*/
|
|
937
|
-
static is_exif_tag(tag: string
|
|
937
|
+
static is_exif_tag(tag: string): boolean
|
|
938
938
|
/**
|
|
939
939
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
940
940
|
* @param tag An Exiv2 tag
|
|
941
941
|
* @returns TRUE if the Exiv2 tag is for the IPTC domain.
|
|
942
942
|
*/
|
|
943
|
-
static is_iptc_tag(tag: string
|
|
943
|
+
static is_iptc_tag(tag: string): boolean
|
|
944
944
|
/**
|
|
945
945
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
946
946
|
* @param tag An Exiv2 tag
|
|
947
947
|
* @returns TRUE if the Exiv2 tag is for the XMP domain.
|
|
948
948
|
*/
|
|
949
|
-
static is_xmp_tag(tag: string
|
|
950
|
-
static register_xmp_namespace(name: string
|
|
949
|
+
static is_xmp_tag(tag: string): boolean
|
|
950
|
+
static register_xmp_namespace(name: string, prefix: string): boolean
|
|
951
951
|
/**
|
|
952
952
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
953
953
|
* @param tag An Exiv2 tag
|
|
954
954
|
* @returns The tag's description
|
|
955
955
|
*/
|
|
956
|
-
static try_get_tag_description(tag: string
|
|
956
|
+
static try_get_tag_description(tag: string): string | null
|
|
957
957
|
/**
|
|
958
958
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
959
959
|
* @param tag An Exiv2 tag
|
|
960
960
|
* @returns The tag's label
|
|
961
961
|
*/
|
|
962
|
-
static try_get_tag_label(tag: string
|
|
962
|
+
static try_get_tag_label(tag: string): string | null
|
|
963
963
|
/**
|
|
964
964
|
* The names of the various Exiv2 tag types can be found at Exiv2::TypeId,
|
|
965
965
|
* <ulink url="http://exiv2.org/doc/namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450c"></ulink>
|
|
@@ -968,13 +968,13 @@ export class Metadata extends GObject.Object {
|
|
|
968
968
|
* @param tag An Exiv2 tag
|
|
969
969
|
* @returns The tag's type name.
|
|
970
970
|
*/
|
|
971
|
-
static try_get_tag_type(tag: string
|
|
972
|
-
static try_get_xmp_namespace_for_tag(tag: string
|
|
973
|
-
static try_register_xmp_namespace(name: string
|
|
971
|
+
static try_get_tag_type(tag: string): string | null
|
|
972
|
+
static try_get_xmp_namespace_for_tag(tag: string): string | null
|
|
973
|
+
static try_register_xmp_namespace(name: string, prefix: string): boolean
|
|
974
974
|
static try_unregister_all_xmp_namespaces(): void
|
|
975
|
-
static try_unregister_xmp_namespace(name: string
|
|
975
|
+
static try_unregister_xmp_namespace(name: string): boolean
|
|
976
976
|
static unregister_all_xmp_namespaces(): void
|
|
977
|
-
static unregister_xmp_namespace(name: string
|
|
977
|
+
static unregister_xmp_namespace(name: string): boolean
|
|
978
978
|
}
|
|
979
979
|
|
|
980
980
|
export module PreviewImage {
|
|
@@ -1007,13 +1007,13 @@ export interface PreviewImage {
|
|
|
1007
1007
|
* @param key name of the key for that association
|
|
1008
1008
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1009
1009
|
*/
|
|
1010
|
-
get_data(key: string
|
|
1011
|
-
get_extension(): string
|
|
1010
|
+
get_data(key: string): any | null
|
|
1011
|
+
get_extension(): string
|
|
1012
1012
|
get_height(): number
|
|
1013
|
-
get_mime_type(): string
|
|
1013
|
+
get_mime_type(): string
|
|
1014
1014
|
get_width(): number
|
|
1015
|
-
try_write_file(path: string
|
|
1016
|
-
write_file(path: string
|
|
1015
|
+
try_write_file(path: string): number
|
|
1016
|
+
write_file(path: string): number
|
|
1017
1017
|
|
|
1018
1018
|
// Class property signals of GExiv2-0.10.GExiv2.PreviewImage
|
|
1019
1019
|
|
|
@@ -1053,9 +1053,9 @@ export interface PreviewProperties {
|
|
|
1053
1053
|
|
|
1054
1054
|
// Owm methods of GExiv2-0.10.GExiv2.PreviewProperties
|
|
1055
1055
|
|
|
1056
|
-
get_extension(): string
|
|
1056
|
+
get_extension(): string
|
|
1057
1057
|
get_height(): number
|
|
1058
|
-
get_mime_type(): string
|
|
1058
|
+
get_mime_type(): string
|
|
1059
1059
|
get_size(): number
|
|
1060
1060
|
get_width(): number
|
|
1061
1061
|
|
package/gexiv2-0.10.d.ts
CHANGED
|
@@ -198,7 +198,7 @@ function log_use_glib_logging(): void
|
|
|
198
198
|
* @param msg The log message
|
|
199
199
|
*/
|
|
200
200
|
interface LogHandler {
|
|
201
|
-
(level: LogLevel, msg: string
|
|
201
|
+
(level: LogLevel, msg: string): void
|
|
202
202
|
}
|
|
203
203
|
module Metadata {
|
|
204
204
|
|
|
@@ -241,7 +241,7 @@ interface Metadata {
|
|
|
241
241
|
* @param tag Exiv2 tag
|
|
242
242
|
* @returns TRUE if the tag was present.
|
|
243
243
|
*/
|
|
244
|
-
clear_tag(tag: string
|
|
244
|
+
clear_tag(tag: string): boolean
|
|
245
245
|
/**
|
|
246
246
|
* Clears all XMP metadata from the loaded image.
|
|
247
247
|
*/
|
|
@@ -308,7 +308,7 @@ interface Metadata {
|
|
|
308
308
|
* @param tag The tag you want the rational value for
|
|
309
309
|
* @returns Boolean success value
|
|
310
310
|
*/
|
|
311
|
-
get_exif_tag_rational(tag: string
|
|
311
|
+
get_exif_tag_rational(tag: string): [ /* returnType */ boolean, /* nom */ number, /* den */ number ]
|
|
312
312
|
/**
|
|
313
313
|
* Query `self` for a list of available EXIF tags
|
|
314
314
|
* @returns A unique list of the available EXIF tags in the loaded image
|
|
@@ -386,7 +386,7 @@ interface Metadata {
|
|
|
386
386
|
* Query mime type of currently loaded image.
|
|
387
387
|
* @returns The MIME type of the loaded image, %NULL if not loaded or unknown.
|
|
388
388
|
*/
|
|
389
|
-
get_mime_type(): string
|
|
389
|
+
get_mime_type(): string
|
|
390
390
|
/**
|
|
391
391
|
* The EXIF Orientation field
|
|
392
392
|
* @returns A #GExiv2Orientation value representing the EXIF orientation value.
|
|
@@ -439,13 +439,13 @@ interface Metadata {
|
|
|
439
439
|
* @param tag Exiv2 tag name
|
|
440
440
|
* @returns The tag's interpreted value as a string
|
|
441
441
|
*/
|
|
442
|
-
get_tag_interpreted_string(tag: string
|
|
442
|
+
get_tag_interpreted_string(tag: string): string | null
|
|
443
443
|
/**
|
|
444
444
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
445
445
|
* @param tag Exiv2 tag name
|
|
446
446
|
* @returns The tag's value as a glong
|
|
447
447
|
*/
|
|
448
|
-
get_tag_long(tag: string
|
|
448
|
+
get_tag_long(tag: string): number
|
|
449
449
|
/**
|
|
450
450
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
451
451
|
*
|
|
@@ -455,7 +455,7 @@ interface Metadata {
|
|
|
455
455
|
* @param tag Exiv2 tag name
|
|
456
456
|
* @returns The multiple string values of the tag. Returns %NULL if parameters are %NULL or @tag does not begin with recognised type of metadata ("Exif.", "Xmp." or "Iptc."). For a well formed @tag, returns array[0] = %NULL if @tag is undefined or is not set in the current metadata. (Note: <ulink url="https://gitlab.gnome.org/GNOME/gexiv2/-/issues/61">xmpText/langAlt bug</ulink> is fixed in gexiv2_metadata_try_get_tag_multiple())
|
|
457
457
|
*/
|
|
458
|
-
get_tag_multiple(tag: string
|
|
458
|
+
get_tag_multiple(tag: string): string[] | null
|
|
459
459
|
/**
|
|
460
460
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
461
461
|
*
|
|
@@ -464,7 +464,7 @@ interface Metadata {
|
|
|
464
464
|
* @param tag Exiv2 tag name
|
|
465
465
|
* @returns The tag's raw value as a byte array
|
|
466
466
|
*/
|
|
467
|
-
get_tag_raw(tag: string
|
|
467
|
+
get_tag_raw(tag: string): GLib.Bytes | null
|
|
468
468
|
/**
|
|
469
469
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
470
470
|
*
|
|
@@ -476,7 +476,7 @@ interface Metadata {
|
|
|
476
476
|
* @param tag Exiv2 tag name
|
|
477
477
|
* @returns The tag's value as a string
|
|
478
478
|
*/
|
|
479
|
-
get_tag_string(tag: string
|
|
479
|
+
get_tag_string(tag: string): string | null
|
|
480
480
|
get_xmp_packet(): string | null
|
|
481
481
|
get_xmp_tags(): string[]
|
|
482
482
|
has_exif(): boolean
|
|
@@ -486,7 +486,7 @@ interface Metadata {
|
|
|
486
486
|
* @param tag Exiv2 tag
|
|
487
487
|
* @returns TRUE if the tag is present.
|
|
488
488
|
*/
|
|
489
|
-
has_tag(tag: string
|
|
489
|
+
has_tag(tag: string): boolean
|
|
490
490
|
has_xmp(): boolean
|
|
491
491
|
/**
|
|
492
492
|
* The buffer must be an image format supported by Exiv2.
|
|
@@ -499,26 +499,26 @@ interface Metadata {
|
|
|
499
499
|
* @param path Path to the file you want to open
|
|
500
500
|
* @returns Boolean success indicator
|
|
501
501
|
*/
|
|
502
|
-
open_path(path: string
|
|
502
|
+
open_path(path: string): boolean
|
|
503
503
|
/**
|
|
504
504
|
* Saves the metadata to the specified using an XMP sidecar file.
|
|
505
505
|
* @param path Path to the file you want to save to.
|
|
506
506
|
* @returns Boolean success indicator.
|
|
507
507
|
*/
|
|
508
|
-
save_external(path: string
|
|
508
|
+
save_external(path: string): boolean
|
|
509
509
|
/**
|
|
510
510
|
* Saves the metadata to the specified file by reading the file into memory,copying this object's
|
|
511
511
|
* metadata into the image, then writing the image back out.
|
|
512
512
|
* @param path Path to the file you want to save to.
|
|
513
513
|
* @returns Boolean success indicator.
|
|
514
514
|
*/
|
|
515
|
-
save_file(path: string
|
|
515
|
+
save_file(path: string): boolean
|
|
516
516
|
/**
|
|
517
517
|
* This is a composite setter that will set a number of fields to the supplied value. See
|
|
518
518
|
* #gexiv2_metadata_get_comment for more information.
|
|
519
519
|
* @param comment Comment string to set. Must not be %NULL
|
|
520
520
|
*/
|
|
521
|
-
set_comment(comment: string
|
|
521
|
+
set_comment(comment: string): void
|
|
522
522
|
/**
|
|
523
523
|
* Set EXIF `tag` represented by a fraction, with `nom` being the numerator,
|
|
524
524
|
* `den` the denominator of the fraction.
|
|
@@ -527,14 +527,14 @@ interface Metadata {
|
|
|
527
527
|
* @param den Rational denominator
|
|
528
528
|
* @returns Boolean success value
|
|
529
529
|
*/
|
|
530
|
-
set_exif_tag_rational(tag: string
|
|
530
|
+
set_exif_tag_rational(tag: string, nom: number, den: number): boolean
|
|
531
531
|
set_exif_thumbnail_from_buffer(buffer: Uint8Array): void
|
|
532
532
|
/**
|
|
533
533
|
* Sets or replaces the EXIF thumbnail with the image in the file
|
|
534
534
|
* @param path Path of image file
|
|
535
535
|
* @returns Boolean success value
|
|
536
536
|
*/
|
|
537
|
-
set_exif_thumbnail_from_file(path: string
|
|
537
|
+
set_exif_thumbnail_from_file(path: string): boolean
|
|
538
538
|
/**
|
|
539
539
|
* Convenience function to create a new set of simple GPS data. Warning: Will remove any other
|
|
540
540
|
* GPS information that is currently set. See gexiv2_metadata_update_gps_info() for
|
|
@@ -566,7 +566,7 @@ interface Metadata {
|
|
|
566
566
|
* @param value The value to set or replace the existing value
|
|
567
567
|
* @returns TRUE on success
|
|
568
568
|
*/
|
|
569
|
-
set_tag_long(tag: string
|
|
569
|
+
set_tag_long(tag: string, value: number): boolean
|
|
570
570
|
/**
|
|
571
571
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
572
572
|
*
|
|
@@ -581,7 +581,7 @@ interface Metadata {
|
|
|
581
581
|
* @param values An array of values to set or replace the existing value(s)
|
|
582
582
|
* @returns Boolean success value
|
|
583
583
|
*/
|
|
584
|
-
set_tag_multiple(tag: string
|
|
584
|
+
set_tag_multiple(tag: string, values: string[]): boolean
|
|
585
585
|
/**
|
|
586
586
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
587
587
|
*
|
|
@@ -595,14 +595,14 @@ interface Metadata {
|
|
|
595
595
|
* @param value The value to set or replace the existing value
|
|
596
596
|
* @returns TRUE on success
|
|
597
597
|
*/
|
|
598
|
-
set_tag_string(tag: string
|
|
598
|
+
set_tag_string(tag: string, value: string): boolean
|
|
599
599
|
/**
|
|
600
600
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
601
601
|
* @param tag Exiv2 tag name
|
|
602
602
|
* @param type The GExiv2StructureType specifying the type of structure
|
|
603
603
|
* @returns TRUE on success
|
|
604
604
|
*/
|
|
605
|
-
set_xmp_tag_struct(tag: string
|
|
605
|
+
set_xmp_tag_struct(tag: string, type: StructureType): boolean
|
|
606
606
|
/**
|
|
607
607
|
* Removes the Exiv2 tag from the metadata object.
|
|
608
608
|
*
|
|
@@ -610,7 +610,7 @@ interface Metadata {
|
|
|
610
610
|
* @param tag Exiv2 tag
|
|
611
611
|
* @returns TRUE if the tag was present.
|
|
612
612
|
*/
|
|
613
|
-
try_clear_tag(tag: string
|
|
613
|
+
try_clear_tag(tag: string): boolean
|
|
614
614
|
/**
|
|
615
615
|
* Removes all GPS metadata from the loaded image
|
|
616
616
|
*/
|
|
@@ -657,7 +657,7 @@ interface Metadata {
|
|
|
657
657
|
* @param tag The tag you want the rational value for
|
|
658
658
|
* @returns Boolean success value
|
|
659
659
|
*/
|
|
660
|
-
try_get_exif_tag_rational(tag: string
|
|
660
|
+
try_get_exif_tag_rational(tag: string): [ /* returnType */ boolean, /* nom */ number, /* den */ number ]
|
|
661
661
|
/**
|
|
662
662
|
* Returns the exposure time in seconds (shutter speed, <emphasis>not</emphasis> date-time of exposure) as a
|
|
663
663
|
* rational. See <ulink url="https://en.wikipedia.org/wiki/Shutter_speed"></ulink> for more information.
|
|
@@ -732,19 +732,19 @@ interface Metadata {
|
|
|
732
732
|
* @param tag Exiv2 tag name
|
|
733
733
|
* @returns The tag's interpreted value as a string
|
|
734
734
|
*/
|
|
735
|
-
try_get_tag_interpreted_string(tag: string
|
|
735
|
+
try_get_tag_interpreted_string(tag: string): string | null
|
|
736
736
|
/**
|
|
737
737
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
738
738
|
* @param tag Exiv2 tag name
|
|
739
739
|
* @returns The tag's value as a glong
|
|
740
740
|
*/
|
|
741
|
-
try_get_tag_long(tag: string
|
|
741
|
+
try_get_tag_long(tag: string): number
|
|
742
742
|
/**
|
|
743
743
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
744
744
|
* @param tag Exiv2 tag name
|
|
745
745
|
* @returns The multiple string values of @tag. Returns %NULL if parameters are %NULL or @tag does not begin with recognised type of metadata ("Exif.", "Xmp." or "Iptc."). For a well formed @tag, returns array[0] = %NULL if @tag is undefined or is not set in the current metadata.
|
|
746
746
|
*/
|
|
747
|
-
try_get_tag_multiple(tag: string
|
|
747
|
+
try_get_tag_multiple(tag: string): string[] | null
|
|
748
748
|
/**
|
|
749
749
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
750
750
|
*
|
|
@@ -753,7 +753,7 @@ interface Metadata {
|
|
|
753
753
|
* @param tag Exiv2 tag name
|
|
754
754
|
* @returns The tag's raw value as a byte array
|
|
755
755
|
*/
|
|
756
|
-
try_get_tag_raw(tag: string
|
|
756
|
+
try_get_tag_raw(tag: string): GLib.Bytes | null
|
|
757
757
|
/**
|
|
758
758
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
759
759
|
*
|
|
@@ -761,20 +761,20 @@ interface Metadata {
|
|
|
761
761
|
* @param tag Exiv2 tag name
|
|
762
762
|
* @returns The tag's value as a string
|
|
763
763
|
*/
|
|
764
|
-
try_get_tag_string(tag: string
|
|
764
|
+
try_get_tag_string(tag: string): string | null
|
|
765
765
|
try_get_xmp_packet(): string | null
|
|
766
766
|
/**
|
|
767
767
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
768
768
|
* @param tag Exiv2 tag
|
|
769
769
|
* @returns TRUE if the tag is present.
|
|
770
770
|
*/
|
|
771
|
-
try_has_tag(tag: string
|
|
771
|
+
try_has_tag(tag: string): boolean
|
|
772
772
|
/**
|
|
773
773
|
* This is a composite setter that will set a number of fields to the supplied value. See
|
|
774
774
|
* #gexiv2_metadata_get_comment for more information.
|
|
775
775
|
* @param comment Comment string to set. Must not be %NULL
|
|
776
776
|
*/
|
|
777
|
-
try_set_comment(comment: string
|
|
777
|
+
try_set_comment(comment: string): void
|
|
778
778
|
/**
|
|
779
779
|
* Set EXIF `tag` represented by a fraction, with `nom` being the numerator,
|
|
780
780
|
* `den` the denominator of the fraction.
|
|
@@ -783,7 +783,7 @@ interface Metadata {
|
|
|
783
783
|
* @param den Rational denominator
|
|
784
784
|
* @returns Boolean success value
|
|
785
785
|
*/
|
|
786
|
-
try_set_exif_tag_rational(tag: string
|
|
786
|
+
try_set_exif_tag_rational(tag: string, nom: number, den: number): boolean
|
|
787
787
|
try_set_exif_thumbnail_from_buffer(buffer: Uint8Array): void
|
|
788
788
|
/**
|
|
789
789
|
* Convenience function to create a new set of simple GPS data. Warning: Will remove any other
|
|
@@ -816,7 +816,7 @@ interface Metadata {
|
|
|
816
816
|
* @param value The value to set or replace the existing value
|
|
817
817
|
* @returns TRUE on success
|
|
818
818
|
*/
|
|
819
|
-
try_set_tag_long(tag: string
|
|
819
|
+
try_set_tag_long(tag: string, value: number): boolean
|
|
820
820
|
/**
|
|
821
821
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
822
822
|
*
|
|
@@ -827,7 +827,7 @@ interface Metadata {
|
|
|
827
827
|
* @param values An array of values to set or replace the existing value(s)
|
|
828
828
|
* @returns Boolean success value
|
|
829
829
|
*/
|
|
830
|
-
try_set_tag_multiple(tag: string
|
|
830
|
+
try_set_tag_multiple(tag: string, values: string[]): boolean
|
|
831
831
|
/**
|
|
832
832
|
* If a tag supports multiple values, then `value` is added to any existing values. For single
|
|
833
833
|
* tags, `value` replaces the value.
|
|
@@ -837,14 +837,14 @@ interface Metadata {
|
|
|
837
837
|
* @param value The value to set or replace the existing value
|
|
838
838
|
* @returns TRUE on success
|
|
839
839
|
*/
|
|
840
|
-
try_set_tag_string(tag: string
|
|
840
|
+
try_set_tag_string(tag: string, value: string): boolean
|
|
841
841
|
/**
|
|
842
842
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
843
843
|
* @param tag Exiv2 tag name
|
|
844
844
|
* @param type The GExiv2StructureType specifying the type of structure
|
|
845
845
|
* @returns TRUE on success
|
|
846
846
|
*/
|
|
847
|
-
try_set_xmp_tag_struct(tag: string
|
|
847
|
+
try_set_xmp_tag_struct(tag: string, type: StructureType): boolean
|
|
848
848
|
/**
|
|
849
849
|
* The Exiv2 Tag Reference can be found at <ulink url="https://www.exiv2.org/metadata.html"></ulink>
|
|
850
850
|
*
|
|
@@ -854,7 +854,7 @@ interface Metadata {
|
|
|
854
854
|
* @param tag An Exiv2 tag
|
|
855
855
|
* @returns Whether @tag is capable of storing multiple values or not. If @tag is undefined (i.e. not built-in and not added to @self), then @error is set and %FALSE is returned.
|
|
856
856
|
*/
|
|
857
|
-
try_tag_supports_multiple_values(tag: string
|
|
857
|
+
try_tag_supports_multiple_values(tag: string): boolean
|
|
858
858
|
/**
|
|
859
859
|
* Convenience function to update longitude, latitude and altitude at once.
|
|
860
860
|
* @param longitude Longitude value to set or replace current value
|
|
@@ -914,13 +914,13 @@ class Metadata extends GObject.Object {
|
|
|
914
914
|
* @param tag An Exiv2 tag
|
|
915
915
|
* @returns The tag's description
|
|
916
916
|
*/
|
|
917
|
-
static get_tag_description(tag: string
|
|
917
|
+
static get_tag_description(tag: string): string | null
|
|
918
918
|
/**
|
|
919
919
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
920
920
|
* @param tag An Exiv2 tag
|
|
921
921
|
* @returns The tag's label
|
|
922
922
|
*/
|
|
923
|
-
static get_tag_label(tag: string
|
|
923
|
+
static get_tag_label(tag: string): string | null
|
|
924
924
|
/**
|
|
925
925
|
* The names of the various Exiv2 tag types can be found at Exiv2::TypeId,
|
|
926
926
|
* <ulink url="http://exiv2.org/doc/namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450c"></ulink>
|
|
@@ -929,39 +929,39 @@ class Metadata extends GObject.Object {
|
|
|
929
929
|
* @param tag An Exiv2 tag
|
|
930
930
|
* @returns The tag's type name.
|
|
931
931
|
*/
|
|
932
|
-
static get_tag_type(tag: string
|
|
933
|
-
static get_xmp_namespace_for_tag(tag: string
|
|
932
|
+
static get_tag_type(tag: string): string | null
|
|
933
|
+
static get_xmp_namespace_for_tag(tag: string): string | null
|
|
934
934
|
/**
|
|
935
935
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
936
936
|
* @param tag An Exiv2 tag
|
|
937
937
|
* @returns TRUE if the Exiv2 tag is for the EXIF domain.
|
|
938
938
|
*/
|
|
939
|
-
static is_exif_tag(tag: string
|
|
939
|
+
static is_exif_tag(tag: string): boolean
|
|
940
940
|
/**
|
|
941
941
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
942
942
|
* @param tag An Exiv2 tag
|
|
943
943
|
* @returns TRUE if the Exiv2 tag is for the IPTC domain.
|
|
944
944
|
*/
|
|
945
|
-
static is_iptc_tag(tag: string
|
|
945
|
+
static is_iptc_tag(tag: string): boolean
|
|
946
946
|
/**
|
|
947
947
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
948
948
|
* @param tag An Exiv2 tag
|
|
949
949
|
* @returns TRUE if the Exiv2 tag is for the XMP domain.
|
|
950
950
|
*/
|
|
951
|
-
static is_xmp_tag(tag: string
|
|
952
|
-
static register_xmp_namespace(name: string
|
|
951
|
+
static is_xmp_tag(tag: string): boolean
|
|
952
|
+
static register_xmp_namespace(name: string, prefix: string): boolean
|
|
953
953
|
/**
|
|
954
954
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
955
955
|
* @param tag An Exiv2 tag
|
|
956
956
|
* @returns The tag's description
|
|
957
957
|
*/
|
|
958
|
-
static try_get_tag_description(tag: string
|
|
958
|
+
static try_get_tag_description(tag: string): string | null
|
|
959
959
|
/**
|
|
960
960
|
* The Exiv2 Tag Reference can be found at <ulink url="http://exiv2.org/metadata.html"></ulink>
|
|
961
961
|
* @param tag An Exiv2 tag
|
|
962
962
|
* @returns The tag's label
|
|
963
963
|
*/
|
|
964
|
-
static try_get_tag_label(tag: string
|
|
964
|
+
static try_get_tag_label(tag: string): string | null
|
|
965
965
|
/**
|
|
966
966
|
* The names of the various Exiv2 tag types can be found at Exiv2::TypeId,
|
|
967
967
|
* <ulink url="http://exiv2.org/doc/namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450c"></ulink>
|
|
@@ -970,13 +970,13 @@ class Metadata extends GObject.Object {
|
|
|
970
970
|
* @param tag An Exiv2 tag
|
|
971
971
|
* @returns The tag's type name.
|
|
972
972
|
*/
|
|
973
|
-
static try_get_tag_type(tag: string
|
|
974
|
-
static try_get_xmp_namespace_for_tag(tag: string
|
|
975
|
-
static try_register_xmp_namespace(name: string
|
|
973
|
+
static try_get_tag_type(tag: string): string | null
|
|
974
|
+
static try_get_xmp_namespace_for_tag(tag: string): string | null
|
|
975
|
+
static try_register_xmp_namespace(name: string, prefix: string): boolean
|
|
976
976
|
static try_unregister_all_xmp_namespaces(): void
|
|
977
|
-
static try_unregister_xmp_namespace(name: string
|
|
977
|
+
static try_unregister_xmp_namespace(name: string): boolean
|
|
978
978
|
static unregister_all_xmp_namespaces(): void
|
|
979
|
-
static unregister_xmp_namespace(name: string
|
|
979
|
+
static unregister_xmp_namespace(name: string): boolean
|
|
980
980
|
}
|
|
981
981
|
|
|
982
982
|
module PreviewImage {
|
|
@@ -1009,13 +1009,13 @@ interface PreviewImage {
|
|
|
1009
1009
|
* @param key name of the key for that association
|
|
1010
1010
|
* @returns the data if found, or %NULL if no such data exists.
|
|
1011
1011
|
*/
|
|
1012
|
-
get_data(key: string
|
|
1013
|
-
get_extension(): string
|
|
1012
|
+
get_data(key: string): any | null
|
|
1013
|
+
get_extension(): string
|
|
1014
1014
|
get_height(): number
|
|
1015
|
-
get_mime_type(): string
|
|
1015
|
+
get_mime_type(): string
|
|
1016
1016
|
get_width(): number
|
|
1017
|
-
try_write_file(path: string
|
|
1018
|
-
write_file(path: string
|
|
1017
|
+
try_write_file(path: string): number
|
|
1018
|
+
write_file(path: string): number
|
|
1019
1019
|
|
|
1020
1020
|
// Class property signals of GExiv2-0.10.GExiv2.PreviewImage
|
|
1021
1021
|
|
|
@@ -1055,9 +1055,9 @@ interface PreviewProperties {
|
|
|
1055
1055
|
|
|
1056
1056
|
// Owm methods of GExiv2-0.10.GExiv2.PreviewProperties
|
|
1057
1057
|
|
|
1058
|
-
get_extension(): string
|
|
1058
|
+
get_extension(): string
|
|
1059
1059
|
get_height(): number
|
|
1060
|
-
get_mime_type(): string
|
|
1060
|
+
get_mime_type(): string
|
|
1061
1061
|
get_size(): number
|
|
1062
1062
|
get_width(): number
|
|
1063
1063
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gexiv2-0.10",
|
|
3
|
-
"version": "0.14.2-3.2.
|
|
3
|
+
"version": "0.14.2-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GExiv2-0.10, generated from library version 0.14.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gexiv2-0.10.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gexiv2-0.10.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
29
|
-
"@girs/gjs": "^3.2.
|
|
30
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
28
|
+
"@girs/gio-2.0": "^2.78.0-3.2.7",
|
|
29
|
+
"@girs/gjs": "^3.2.7",
|
|
30
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
31
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"typescript": "*"
|