PSD: Add missing guide info in metadata

This commit is contained in:
Davide Tantillo 2023-01-31 23:49:44 +01:00
parent 164cc11592
commit 78832ed923
No known key found for this signature in database
GPG Key ID: 83A9AD5EC288611C

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) {