mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-03 11:35:29 -04:00
Updated metadataformat to use new Metadata classes (how did IDEA's refactorings miss this? Hmmm...)
This commit is contained in:
parent
20d6e35640
commit
ef09b599f6
@ -1,5 +1,6 @@
|
|||||||
package com.twelvemonkeys.imageio.plugins.psd;
|
package com.twelvemonkeys.imageio.plugins.psd;
|
||||||
|
|
||||||
|
import com.twelvemonkeys.imageio.metadata.Directory;
|
||||||
import org.w3c.dom.Document;
|
import org.w3c.dom.Document;
|
||||||
|
|
||||||
import javax.imageio.ImageTypeSpecifier;
|
import javax.imageio.ImageTypeSpecifier;
|
||||||
@ -98,7 +99,7 @@ public final class PSDMetadataFormat extends IIOMetadataFormatImpl {
|
|||||||
|
|
||||||
// root -> ImageResources -> EXIF
|
// root -> ImageResources -> EXIF
|
||||||
addElement("EXIF", "ImageResources", CHILD_POLICY_EMPTY);
|
addElement("EXIF", "ImageResources", CHILD_POLICY_EMPTY);
|
||||||
addObjectValue("EXIF", PSDEXIF1Data.Directory.class, true, null);
|
addObjectValue("EXIF", Directory.class, true, null);
|
||||||
// TODO: Incorporate EXIF / TIFF metadata here somehow... (or treat as opaque bytes?)
|
// TODO: Incorporate EXIF / TIFF metadata here somehow... (or treat as opaque bytes?)
|
||||||
|
|
||||||
// root -> ImageResources -> GridAndGuideInfo
|
// root -> ImageResources -> GridAndGuideInfo
|
||||||
@ -116,7 +117,7 @@ public final class PSDMetadataFormat extends IIOMetadataFormatImpl {
|
|||||||
|
|
||||||
// root -> ImageResources -> IPTC
|
// root -> ImageResources -> IPTC
|
||||||
addElement("IPTC", "ImageResources", CHILD_POLICY_EMPTY);
|
addElement("IPTC", "ImageResources", CHILD_POLICY_EMPTY);
|
||||||
addObjectValue("IPTC", PSDIPTCData.Directory.class, true, null);
|
addObjectValue("IPTC", Directory.class, true, null);
|
||||||
// TODO: Incorporate IPTC metadata here somehow... (or treat as opaque bytes?)
|
// TODO: Incorporate IPTC metadata here somehow... (or treat as opaque bytes?)
|
||||||
|
|
||||||
// root -> ImageResources -> PixelAspectRatio
|
// root -> ImageResources -> PixelAspectRatio
|
||||||
|
Loading…
x
Reference in New Issue
Block a user