Hello,
Here is in the attached file a python script to add in GIMP. It is supposed to be useful for pixel artists but also for those who rip game maps.
This one is not a Script-Fu, but a Python-Fu. My first script in Python...

This is a beta version, I hope there will be not too many bugs. Please save your work before. Don't hesitate to report bugs.
See attachment file.What is this kind of script?It is explained here:
https://docs.gimp.org/en/gimp-filters-python-fu.htmlWhere to copy it?Unzip the folder before to copy it the right place.There are often two directories. You can find their path in:
"Edit" > "Preferences" > "Folders" > "Plug-Ins"
Some explanations- It appears in the menu /Filters/pixelart-tileset-extractor of GIMP
-
It extracts tiles from a tilemap to build quicker a tileset. This excludes tiles from the existing tileset, if any.Example: 1 min 20 to extract the tiles from
this image of 2560x2048 pixels (this represents 20480 tiles of 16px). Here, there is no existing tileset (so it is the layer's name that appears). If there was a tileset, I should have selected it (in "Tileset:") and tiles already known would have been excluded from the created tileset ("New tileset").
