ente/thirdparty/flutter_image_compress/ios/Classes/SYPictureMetadata/SYMetadataPNG.m
2021-01-21 16:19:12 +05:30

37 lines
1.8 KiB
Dart
Executable file

//
// SYMetadataPNG.m
// SYPictureMetadataExample
//
// Created by Stan Chevallier on 12/16/12.
// Copyright (c) 2012 Syan. All rights reserved.
//
#import "SYMetadataPNG.h"
#import <ImageIO/ImageIO.h>
@implementation SYMetadataPNG
+ (NSDictionary *)JSONKeyPathsByPropertyKey
{
return @{SYStringSel(gamma): (NSString *)kCGImagePropertyPNGGamma,
SYStringSel(interlaceType): (NSString *)kCGImagePropertyPNGInterlaceType,
SYStringSel(xPixelsPerMeter): (NSString *)kCGImagePropertyPNGXPixelsPerMeter,
SYStringSel(yPixelsPerMeter): (NSString *)kCGImagePropertyPNGYPixelsPerMeter,
SYStringSel(sRGBIntent): (NSString *)kCGImagePropertyPNGsRGBIntent,
SYStringSel(chromaticities): (NSString *)kCGImagePropertyPNGChromaticities,
SYStringSel(author): (NSString *)kCGImagePropertyPNGAuthor,
SYStringSel(copyright): (NSString *)kCGImagePropertyPNGCopyright,
SYStringSel(creationTime): (NSString *)kCGImagePropertyPNGCreationTime,
SYStringSel(descr): (NSString *)kCGImagePropertyPNGDescription,
SYStringSel(modificationTime): (NSString *)kCGImagePropertyPNGModificationTime,
SYStringSel(software): (NSString *)kCGImagePropertyPNGSoftware,
SYStringSel(title): (NSString *)kCGImagePropertyPNGTitle,
SYStringSel(loopCount): (NSString *)kCGImagePropertyAPNGLoopCount,
SYStringSel(delayTime): (NSString *)kCGImagePropertyAPNGDelayTime,
SYStringSel(unclampedDelayTime): (NSString *)kCGImagePropertyAPNGUnclampedDelayTime,
SYStringSel(compressionFilter): (NSString *)kCGImagePropertyPNGCompressionFilter,
};
}
@end