bytea_exif
PostgreSQL extension for EXIF data reading from bytea value of image and MIME type check
bytea_exif · PostgreSQL extension for EXIF data reading from bytea value of image and MIME type check
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101303 | bytea_exif | bytea_exif | 1.0 | UTIL | Unknown | C |
Usage
Sources:
- Official upstream README
- Official extension control file (bytea_exif.control)
- Official extension SQL (bytea_exif–1.0.sql)
bytea_exif — EXIF data reader from binary bytea data for PostgreSQL ======================================================. Use it for the corresponding SQL or database utility workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
bytea_exif_libexif_version()is an extension function and returnsint.bytea_exif_version()is an extension function and returnsint.bytea_get_exif_dest_point(data bytea)is an extension function and returnstext.bytea_get_exif_gps_local_timestamp(data bytea)is an extension function and returnstimestamp.bytea_get_exif_gps_utc_timestamp(data bytea)is an extension function and returnstimestamptz.bytea_get_exif_json(data bytea)is an extension function and returnsjson.bytea_get_exif_point(data bytea)is an extension function and returnstext.bytea_get_exif_tag_value(data bytea, tag text)is an extension function and returnstext.bytea_get_exif_user_comment(data bytea)is an extension function and returnstext.bytea_get_mime_type(data bytea)is an extension function and returnstext.bytea_has_exif(data bytea)is an extension function.bytea_has_exif_ifd(data bytea, ifd text)is an extension function.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.