Re: [gdal-dev] Space Disk/Memory of Image

2023-05-09 Thread Brad Hards
On Tuesday, 9 May 2023 6:47:39 PM AEST Elena Ruiz wrote: > Hello, I need to know the disk size of an image, I calculate it using the > following formula: > > Disk size=( sizex*sizey*bits per pixel)/8 =memory size without compression > > But when the image is compressed on disk it occupies less an

Re: [gdal-dev] Space Disk/Memory of Image

2023-05-09 Thread Laurențiu Nicola via gdal-dev
Hello, The GDAL API actually has a couple of methods that return the size of a file (not dataset) on disk: VSIStatL , VSIStatExL . Since th

[gdal-dev] Space Disk/Memory of Image

2023-05-09 Thread Elena Ruiz
Hello, I need to know the disk size of an image, I calculate it using the following formula: Disk size=( sizex*sizey*bits per pixel)/8 =memory size without compression But when the image is compressed on disk it occupies less and the size in memory is much larger, is there some method in the C+