Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export an XML file describing layer positions #62

Open
MarcRX opened this issue Aug 26, 2018 · 3 comments
Open

Export an XML file describing layer positions #62

MarcRX opened this issue Aug 26, 2018 · 3 comments

Comments

@MarcRX
Copy link

MarcRX commented Aug 26, 2018

When working on HMI grafix it would be helpful to export an XML file that describes where on the canvas the layer is located. That way it can be read in to other tools (like programming IDEs) automatically.

@khalim19
Copy link
Collaborator

khalim19 commented Oct 18, 2018

This is quite a specific feature, and I'm not sure if it falls inside the scope of the plug-in, but I'll see what I can do.

Should the XML tags have specific names?

I'm thinking that the exported metadata should be comprehensive and contain all information there is about a layer, not just its coordinates (name, opacity, mode, ...), which could also prove useful.

@khalim19 khalim19 changed the title [improvement] export an XML file describing layer positions Export an XML file describing layer positions Oct 18, 2018
@MarcRX
Copy link
Author

MarcRX commented Oct 19, 2018

It would be enough to mention the name of the generated grafix and it's layer 0,0 position on the image canvas so that the programmer can use this to put the grafix element on the screen of the target device. Occupacy is already part of the generated grafix. What would be helpful is a flag that represents visibility of the layer. That way the startup content could be defined but at the same time also the position of the layer/grafix that are unvisible are still part of the description XML.

@khalim19 khalim19 modified the milestones: 3.0, 3.5 Jan 18, 2019
@khalim19 khalim19 modified the milestones: 3.5, 3.4 Sep 27, 2022
@kamilburda kamilburda removed this from the 3.4 milestone Nov 28, 2022
@kamilburda
Copy link
Owner

I created a separate plug-in for exporting metadata to several formats, including XML:
https://github.com/kamilburda/gimp-metadata-export

The resulting XML contains image dimensions, layer dimensions, layer position within the image and tons of other metadata (visibility, opacity, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants