Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
What is your IM version and platform? Please always provide that. I believe you will need to crop the images into tiles. Then read the tiles in a loop one at a time to extract the virtual canvas offsets and rename the files. You can use the -set filename:offsets "%Xx%Y" to get the offsets and then write those values to the output image. See
sedwo wrote: ↑2018-02-14T10:13:18-07:00Hence the tiles filename depict their coordinate on the tile map. As well as hint to their 2D dimension.
You can crop an image into tiles and save the output images with filenames that indicate their dimensions and the offsets of their original locations. A command like this should get you started...
sedwo wrote: ↑2018-02-14T10:13:18-07:00Hence the tiles filename depict their coordinate on the tile map. As well as hint to their 2D dimension.
If the tile images are saved as PNGs, they can still contain the original image size and offset information. ImageMagick can use that to reconstruct all or part of the original image. A simple command like this shows how it works...