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

Save metadata when exporting as pixelium file #110

Open
moonayyur opened this issue May 16, 2024 · 1 comment
Open

Save metadata when exporting as pixelium file #110

moonayyur opened this issue May 16, 2024 · 1 comment
Assignees

Comments

@moonayyur
Copy link
Collaborator

Currently, the image instance is encoded and saved in a refs folder, so we loose the metadata
We would like to copy the metadata in the data.json file

Current data.json structure :

{
  "isLoading": false,
  "images": {
    "cc720446-9ef0-4b39-936d-f081b7e90655": {
      "image": "0655a16f-d92d-4bb8-b250-e55ac43c2266",
      "metadata": {
        "name": "Silica_small.tif",
        "relativePath": "Fribourg/Silica_small.tif"
      },
      "pipeline": [],
      "rois": []
    }
  }
}
@lpatiny
Copy link
Contributor

lpatiny commented May 17, 2024

In reality we should keep the original image and not recreate a PNG. @moonayyur could you check what should be changed in order to be able to save back in the .ium file the original image ?

The name should also be the original name. We we unzip a .ium file we need to get back the original name.

How to deal with conflict of name ???

If the name is already there we add a number

  • colonies.jpg
  • colonies.1.jpg
  • colonies.2.jpg
  • ...

I'm not sure why we are using a UUID to name the images, but if possible, I would simply use the 'unique' name (as generate before). When unzipping the ium file, it would be much easier to understand which image corresponds to which meta information (result of ROI's analysis, for example).

I would prefer a structure like:

image

@lpatiny lpatiny added this to Pixelium May 17, 2024
@lpatiny lpatiny moved this to Todo in Pixelium May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants