I am trying to get the same result from these two functions presented in QGIS 3.16. The first one is "Generate XYZ Tiles (Directory)" that it is embedded in QGIS, while the second one is the GDAL function "Gdal2Tiles".
The first works as it should, it generates a folder structure that my TileServer can read, while the latter produces something different, which my TileServer then represents me with overlapping images and other graphical problems. The problem with the first function is that for large images (about 60GB), it crashes. While GDAL also works well with large images.
Gdal2Tiles has 3 "Tile cutting profile": Raster, Mercator, Geodetic. Geodetic is the one that comes closest to the structure I need, even if it always has some graphic errors.
For example, using "Gdal2Tiles" I obtain a folder structure of 7/76/83.png, using the code below:
python3 -m gdal2tiles -p geodetic -z 0-10 -w openlayers -r average -s EPSG:3857 --xyz -a 0.0 -n C:/image.tif C:\gdal-xyz-geodetic While in "Generate XYZ Tiles (Directory)" I obtain 7/76/50.png
You can download my TIFF for a test here.
