zakodium-oss / pixelium

React component to display and process raster image.
https://pixelium.zakodium.com/
MIT License
1 stars 0 forks source link

Edit image metainfo #114

Open lpatiny opened 2 months ago

lpatiny commented 2 months ago

There should be an edit button on each row of the images:

image

That allows to edit metadata information.

      "metadata": {
        "name": "Silica_small.tif",
        "relativePath": "Fribourg/Silica_small.tif"
      },

There should be 2 metadata information currently:

pixelSize should be defined as a number + units. Like '1 mm' and corresponds to the size of 1 pixel.

We will see later to convert this using js-quantities.

lpatiny commented 2 months ago

The type of 'pixelSize' should be: https://github.com/cheminfo/cheminfo-types/blob/main/src/core/Value.d.ts

The allowed units could be for now: nm, µm, mm, m, km

You can use 'input group' to input the value

https://blueprintjs.com/docs/#core/components/input-group

image

moonayyur commented 2 months ago

pixelSize should be defined as a number + units. Like '1 mm' and corresponds to the size of 1 pixel.

@lpatiny Should the pixel value and unit be saved in the same metadata ? I think it would be easier for the display and data editing if they are saved separately

      "metadata": {
        "name": "Silica_small.tif",
        "relativePath": "Fribourg/Silica_small.tif"
        "pixelSize": "0.272727272727"
        "pixelUnit": "nm"
      },
lpatiny commented 2 months ago

I would prefer it is saved in the same metadata but you are right that we didn't develop a way to display it so you can for now use 2 fields.

lpatiny commented 2 months ago

Please add a 's' at units. pixelUnits