Mobile app version of vmapp.org
Login or Join
Berryessa866

: Exporting square tiles from a stripe - in Inkscape or Gimp I am using Inkscape and Gimp to create assets for a word game and am looking for an advice from more experienced users of these

@Berryessa866

Posted in: #Export #Gimp #Inkscape #Tiles

I am using Inkscape and Gimp to create assets for a word game and am looking for an advice from more experienced users of these great tools.

In Inkscape I have created a stripe with 26 letters and their values:



The stripe is comfortable to edit - I have enabled grid snapping there and also I can always revisit the SVG file and change font sizes or letter values.

Then I have exported the SVG file as a whole page to PNG files in different resolutions:



Unfortunately, loading a 6240 x 240 pixels PNG file does not work with Android (because of OpenGL width limitation for textures - 2048 pixels on many devices).

So I have to split the SVG file or the resulting PNG files in square images of 240 x 240 pixels for each letter (Android could process them without problems).

My question is if anyone knows a good way to perform such a split in Inkscape (that would be best) or in Gimp?

In Export Bitmap dialog of Inkscape I see a batch-related checkbox... Could it be used for my purposes?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Berryessa866

2 Comments

Sorted by latest first Latest Oldest Best

 

@Steve758

Yes, you can do it in Gimp, but in my opinion is simpler with ImageMagick (see also here).

You need to put a lot of guidelines where you need to cut:



And then simply apply the Guillotine transform:



After this, you have the original image split in a lot of imagettes:



And you have to save - pardon, export - each of them with a proper name.

Ok, maybe you can use a script for the guidelines and apply the slice plugin (which saves the pictures in a folder) to make it faster...

In Inkscape you can choose the area to export, and you can simply calculate the proper coordinates and save each image:



See also here for Inkscape.

Trust me, I love Gimp and Inkscape, but a more proper tool for this kind of operation is Imagemagick ;-).

10% popularity Vote Up Vote Down


 

@Pierce403

I would use another tool, like "image magick", to "compile" your exported png into slices.

For example : www.imagemagick.org/Usage/crop/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme