gpx2video icon indicating copy to clipboard operation
gpx2video copied to clipboard

[BUG] PNG Does not Support Tiles

Open pyramid3d opened this issue 8 months ago • 1 comments

The bug When running the command given in raedme: ./gpx2video -g 20240601.gpx -o map.png --map-source=1 --map-zoom=11 --map-factor 2.0 map I get the following bug from OpenImageIO:

Build map... width = 512 height = 512 Tiles are not supported TILESIZE = 256 ERROR: Build map failure, can't open 'map.png' file error = png does not support tiled images

To Reproduce Add this code in map.cpp, lines 573++ std::unique_ptrOIIO::ImageOutput out = OIIO::ImageOutput::create("map.png"); OIIO::ImageSpec outspec(width, height, 4); if (!out->supports("tiles")) { std::cerr << "Tiles are not supported" << "\n"; }

Expected behavior Convincing the code to use .tif format works fine. std::unique_ptrOIIO::ImageOutput out = OIIO::ImageOutput::create("map.tif");

Desktop (please complete the following information): Linux 6.8.9-arch1-2 #1 SMP PREEMPT_DYNAMIC Tue, 07 May 2024 21:35:54 +0000 x86_64 GNU/Linux

Additional context

pacman -Ss openimageio

extra/openimageio 2.5.10.1-1 [installed]

pyramid3d avatar Jun 07 '24 17:06 pyramid3d