.gih export dialogue is not aligned with original data of brush
Environment/Versions
- GIMP version: 2.99.18
- Package: flatpak Installer from gimp.org
- Operating System: Linux Fedora 39 Budgie Flavour
Description of the bug
The .gih brush dialogue not aligned with original brush instances causes problems and corrupts the archive .gih. For instance, when you open a .gih brush as an image is waiting for the instances of measure, cells, ranks and parameter effect must be equal to the original .gih brush.
To understand well the issue I created from the command line a .gih using the instructions on the [https://developer.gimp.org/core/standards/gih/]
I have created a header:
Fire
3 ncells:3 step:20 dim:1 cols:1 rows:3 rank0:3 selection:incremental
After I generated the .gih $ cat header Cell-01.gbr Cell-02.gbr Vegetation-01.gbr > foo.gih
I have made a setup to Gimp use the folder where is placed foo.gih
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Open the foo.gih brush as an image;
- Try export as foo.gih only to open the export dialogue and to make a comparison between the original instances of the header:
-
The Gih Export dialogue is broken except for Description and Cell (width and Height) measures.
-
The 'Number of Cells' is disabled (but using 1), because the buttons (- and +) are disabled. Is necessary to add the correct Number of Cells, in this case, '3'.
-
The Ranks are also wrong (using 1) and not aligned with stack layers that are '3'.
-
Dimension numbers were recovered correctly... but is a coincidence because the setup is always of 1 dimension.
-
The parameter original is incremental and it was loaded as 'random'.
-
I have tried opening other .gih with different arrays and the setup that appears on the Gih Export Dialogue is always the same:
- If you try to export it, obviously we created a corrupt .gih and when we reload the brushes of Brush Dialogue Gimp opens an alert about it.
- If you open the same .gih as the image on 2.10.36 the dialogue recovers correctly the .gih created by the command line: