mirror of
https://github.com/lovell/sharp.git
synced 2026-02-05 22:26:20 +01:00
Add withGainMap to process HDR JPEGs with embedded gain map #4314
This commit is contained in:
7
lib/index.d.ts
vendored
7
lib/index.d.ts
vendored
@@ -1277,6 +1277,8 @@ declare namespace sharp {
|
||||
formatMagick?: string | undefined;
|
||||
/** Array of keyword/text pairs representing PNG text blocks, if present. */
|
||||
comments?: CommentsMetadata[] | undefined;
|
||||
/** HDR gain map, if present */
|
||||
gainMap?: GainMapMetadata | undefined;
|
||||
}
|
||||
|
||||
interface LevelMetadata {
|
||||
@@ -1289,6 +1291,11 @@ declare namespace sharp {
|
||||
text: string;
|
||||
}
|
||||
|
||||
interface GainMapMetadata {
|
||||
/** JPEG image */
|
||||
image: Buffer;
|
||||
}
|
||||
|
||||
interface Stats {
|
||||
/** Array of channel statistics for each channel in the image. */
|
||||
channels: ChannelStats[];
|
||||
|
||||
Reference in New Issue
Block a user