Hotspot auto set when resizing .xmc files
Environment/Versions
- GIMP version: 2.99.18
- Package: Flatpak
- Operating System: Ubuntu 24.04
Description of the bug
When we resize an .xmc file, which is a cursor file for Linux, the hotspot is not auto set / scaled. Say for an arrow if it is (2,2), scaling it 50% will make it (1,1).
This is ok when we are doing it one by one as there is an option to set a hotspot while exporting the new xmc file. But I recently created a cursor theme with around 50 xmc files. I used Batcher plugin to batch resize.
https://github.com/kamilburda/batcher
In such cases, it allows to export layers ( I am imported all xmc as layers as that is the only way to batch convert), but all of them will have a single (x,y) as hotspot.
Most cursor themes will have at least 40 files. So having no option to batch process them is close to having no support. The process is even deeper as those who understand the workflow. It asks for various sizes as layers. I am skipping that part now.
Reproduction
Is the bug reproducible?
Reproduction steps:
- Use any available batch processing modes for .xmc
- Try to auto scale / change the hotspot
- There is no existing way to do it, even for a single file where we have to manually set the hotspot after scaling.
…
Expected result: Auto set the new hotspot based on scaling factor
Actual result: Have to manually set hotspot.
Additional information
If you have a backtrace for a crash or a warning, paste it here.