OSGeo / gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
https://gdal.org
Other
4.85k stars 2.53k forks source link

0Warning, 0Error: progress meter starts too early #9441

Closed jidanni closed 6 months ago

jidanni commented 7 months ago

Here we see 0Warning,

gdal_translate m.tif m.jpg
Input file size is 132, 144
0Warning 6: JPEG driver doesn't support data type Float32.
Only eight and twelve bit bands supported (Mk1 libjpeg).

...10...20...30...40...50...60...70...80...90...100 - done.

0ERROR: See #9432

So the progress meter needs to start after the other checks are finished, otherwise they step on each other's output making garbled messages.

jratike80 commented 7 months ago

What if the error happens after 10% progress? Would it look better with a line break?

0.
Warning 6: JPEG driver doesn't support data type Float32.
Only eight and twelve bit bands supported (Mk1 libjpeg).
...10...20...30...40...50...60...70...80...90...100 - done.