Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn3-layer-tiles
#12
Hi, I have a bug report to make.

In the code used to split by width and height, there's a bug that results in an image that is 32x704 being split by 32x32 producing 1024 (32^2) layers rather than 22 layers.

This is using the plugin with a modified date of 2025-06-10 (the latest).

Removing the line of code and testing without it results in it correctly splitting the image.

Code:
def layerToTilesWH(procedure: Gimp.ImageProcedure,
               run_mode: Gimp.RunMode,
               image: Gimp.Image,
               drawables: list[Gimp.Drawable],
               config: Gimp.ProcedureConfig, data: Any):
    trace(f'fullDialog({procedure=!r}, {run_mode=!r}, {image=!r}, {drawables=!r}, {config=!r}, {data=!r})')

    width,height=getArgsValues(config,widthArg, heightArg)
    pattern,rowsFirst,disposition=getArgsValues(config,patternArg,rcOrderSplitArg,dispositionSplitArg)
    trace(f'{width=}, {height=}, {pattern=}, {rowsFirst=}, {disposition=}')
    layer=drawables[0]
    layerToTiles(image,layer,pattern,tilesDataRC(layer,width,height),disposition,rowsFirst) #incorrect code?

    layerToTiles(image,layer,pattern,tilesDataWH(layer,width,height),rowsFirst,disposition)
Reply


Messages In This Thread
ofn3-layer-tiles - by Ofnuts - 11-29-2024, 08:38 PM
RE: ofn3-layer-tiles - by karaxus - 03-25-2025, 09:39 AM
RE: ofn3-layer-tiles - by karaxus - 04-24-2025, 06:46 AM
RE: ofn3-layer-tiles - by Ofnuts - 04-24-2025, 07:07 AM
RE: ofn3-layer-tiles - by karaxus - 05-08-2025, 07:12 AM
RE: ofn3-layer-tiles - by karaxus - 05-08-2025, 08:18 AM
RE: ofn3-layer-tiles - by gasMask - 05-08-2025, 10:17 AM
RE: ofn3-layer-tiles - by karaxus - 05-08-2025, 10:53 AM
RE: ofn3-layer-tiles - by Ofnuts - 05-13-2025, 09:33 PM
RE: ofn3-layer-tiles - by karaxus - 06-05-2025, 11:43 AM
RE: ofn3-layer-tiles - by Ofnuts - 06-10-2025, 11:03 AM
RE: ofn3-layer-tiles - by Phoenix - 06-13-2026, 01:18 AM

Forum Jump: