Imagemap can open image and overwrite with text
Environment/Versions
- GIMP version: 2.10.36, also present in GIMP_2_99_16-1027-g5dc8c267
- Package: Flatpak and compiled from source
- Operating System: Linux
Description of the bug
I first wondered if the file open menu for the Imagemap plug-in didn't work, since it seemed that it did nothing when I tried to open an image.
Reading the help I see open/save here controls the underlying text source and is only meant for text files, but it can open image files as well, e.g .jpg
.
This opened image file will then be used for the xml of the mappings in the plug-in. Saving will now overwrite that image with text.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Open an image
- Filters->Web->Image map
- In the imagemap window, click File->Open, open an image, e.g image.jpg
- In the imagemap window, click File->Save
- content of image.jpg is replaced with xml for the imagemap mappings.
…
Expected result: Should probably not be possible to open images from the imagemap plug-in, or at least give some warning when trying to write the xml to non-text files.
Actual result: Image is opened and its contents replaced with text.