6/14/2023 0 Comments Split picture into grid![]() ![]() You could easily find these with a Google search. I also used various websites with image-editing tools from time to time.Use Options > Export Image Tiles (split image) to save the image as multiple tiles.Choose the color to paint the newly added pixels with (matching the map’s background color).Use the File > Export > Save for the web (Legacy) option to finally export the image’s slices/tiles to separate images.Use the Slice tool to divide the image into 4 slices (2 rows and 2 columns).Paint the newly added pixels with the map’s background color.Change the canvas size to square (manually).Some of the solutions I used and their required steps were: It may sound like a simple thing to do, but surprisingly, I had to search a bit to find how to do it with various image processing apps I use every day. ![]() ![]() ![]() I also needed to first resize the image into a square, to follow Instagram’s requirements (indeed, there are a lot of apps, with subscriptions and in-app purchases, that do just that!). This helps with showing all the map details in the small phone screen, and also looks cool: Swiping through the map tiles on Instagram. The idea for developing split-image, came from the need to streamline a process I had to do fairly frequently for MapChart‘s social media.Įach time I shared a map made with MapChart on its Instagram account, I wanted to additionally post the map split into 4 zoomed-in parts. This is a short overview of how I developed split-image in the span of a few days, the problem it solves, and example use cases. Split-image is a Python package that you can use from the command line to quickly split an image into grid tiles: It’s nice to know that such a simple program, with under 100 lines of code, is helping so many developers. Recently, I was happily surprised to see that split-image, a Python package I published on PyPi, has 200+ downloads per month. ![]()
0 Comments
Leave a Reply. |