Funny - I went to bed last night, knowing that this was the first thing I would have to endure this morning. I just found a wonderful solution. ImageMagick out of the box using conversion with the -crop option:
convert bigimage.png -crop 256x256 tile.png
This makes as many tile files as necessary, and, most importantly, creates rectangles on the right side and bottom. All the other solutions that I investigated made n, m uniformly sized plates from the image.
Tiles are numbered with tiles - ##. png, where ## starts from zero. I would prefer -row # -col # .png, but this will work for me. CATiledLayer, here I come.
Quinn Jul 14 2018-10-14T00: 00Z
source share