Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn-tiles & ofn-export-layers
#1
The place to discuss ofn-tiles (still fairly experimental as this thread is started) and ofn-export-layers

ofn-tiles and ofn-export-layers are available here (as separate packages).

So, you have a layer, ofn-tiles will cut it into X by Y tiles (you give the number of tiles of each direction), and save each tile in a
specified directory. ofn-tiles in accessed via Layer>Save as tiles.

Name of the tiles: the file names of the tiles are obtained by inserting the row and column number of the tile (or its sequence number) in a string that your provide. The place where these numbers are inserted are indicated by names in braces:
  • row0, row1 is the row number of the tile. When using "row0" the first row is 0 and when using "row1" the first row is 1.
  • column0, column1 is the column number of the tile. Ending in 0,1 is same as above
  • tileRC0,tileRC1, tileCR0,tileCR1,  is the tile number. Ending in 0,1 is same as above. The *CR has the rows scanned first so tiles 1, 2, 3 are in the first column while the *RC has the columns scanned first, and tiles 1,2,3 are in the first row.
  • the string is the complete name of the file and should have an image format extension (png, gif, jpg...) since it will be used by Gimp to determine how to save the file. The defaults settings for the file type are used.
  • the name pattern is actually a Python format, so modifiers can be used. For instance {row0:03d} will insert the row number on at least three digits, with zeroes added to the left if necessary: "000", "001", "013", "099", "100" 
ofn-export-layers is a close cousin, it exports all the layers of the image as separate files, using the same flexible way of naming the output files.
Reply


Messages In This Thread
ofn-tiles & ofn-export-layers - by Ofnuts - 08-09-2017, 09:15 PM
RE: ofn-tiles - by rich2005 - 08-10-2017, 08:25 AM
RE: ofn-tiles - by Ofnuts - 08-10-2017, 12:30 PM
RE: ofn-tiles - by Ofnuts - 08-10-2017, 01:27 PM
RE: ofn-tiles - by rich2005 - 08-10-2017, 05:02 PM
RE: ofn-tiles - by Ofnuts - 08-10-2017, 05:03 PM
RE: ofn-tiles - by RayArdia - 08-11-2017, 03:10 PM
RE: ofn-tiles - by Ofnuts - 08-11-2017, 04:55 PM
RE: ofn-tiles - by rich2005 - 08-11-2017, 06:33 PM
RE: ofn-tiles - by Ofnuts - 08-21-2017, 07:12 PM
RE: ofn-tiles - by jahf - 12-15-2021, 04:34 AM
RE: ofn-tiles - by Ofnuts - 12-15-2021, 07:43 AM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 12-12-2017, 11:28 PM
RE: ofn-tiles & ofn-export-layers - by meetdilip - 12-07-2021, 08:37 AM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 12-07-2021, 11:31 AM
RE: ofn-tiles & ofn-export-layers - by meetdilip - 12-07-2021, 01:06 PM
RE: ofn-tiles & ofn-export-layers - by Krikor - 12-15-2021, 01:27 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 12-16-2021, 09:56 AM
RE: ofn-tiles & ofn-export-layers - by Krikor - 12-16-2021, 06:00 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 01-17-2022, 06:27 PM
RE: ofn-tiles & ofn-export-layers - by tilesUser - 01-19-2022, 07:31 PM
RE: ofn-tiles & ofn-export-layers - by layolayo - 03-17-2022, 02:15 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 03-17-2022, 08:42 PM
RE: ofn-tiles & ofn-export-layers - by layolayo - 03-18-2022, 12:50 PM
RE: ofn-tiles & ofn-export-layers - by rich2005 - 03-18-2022, 04:30 PM
RE: ofn-tiles & ofn-export-layers - by layolayo - 03-18-2022, 05:03 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 01-08-2023, 12:26 PM
RE: ofn-tiles & ofn-export-layers - by Murxel - 02-21-2023, 01:13 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 02-21-2023, 04:44 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 10-18-2023, 07:57 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 10-19-2023, 07:23 AM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 10-20-2023, 07:18 AM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 10-24-2023, 03:27 PM
RE: ofn-tiles & ofn-export-layers - by Ofnuts - 12-19-2023, 08:36 AM

Forum Jump: