Merge pull request #731 from daaaaa/master

PSD: Add missing guide info in metadata
This commit is contained in:
Harald Kuhr 2023-02-01 10:17:39 +01:00 committed by GitHub
commit 4bbe946f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,6 +203,7 @@ public final class PSDMetadata extends AbstractMetadata {
IIOMetadataNode guideNode = new IIOMetadataNode("Guide"); IIOMetadataNode guideNode = new IIOMetadataNode("Guide");
guideNode.setAttribute("location", Integer.toString(guide.location)); guideNode.setAttribute("location", Integer.toString(guide.location));
guideNode.setAttribute("orientation", GUIDE_ORIENTATIONS[guide.direction]); guideNode.setAttribute("orientation", GUIDE_ORIENTATIONS[guide.direction]);
node.appendChild(guideNode);
} }
} }
else if (imageResource instanceof PSDPixelAspectRatio) { else if (imageResource instanceof PSDPixelAspectRatio) {