I would like to create a polygon around the raster (.tif) extent so I can calculate for instance the area in m2 within the polygon.
When I try to Polygonize or Clip raster by extend (and delete the 0 value) the vector data comes out with a lot of holes inside, which will make area calculation inaccurate. See figure below for clarification.
Does someone knows a handy way to create a polygon around the data extent?

raster@1 > 0or whatever fits your data), then it's much easier to polygonize the resulting raster. – Babel Dec 15 '22 at 15:59