# How to decrease the tagsize after deleting coverart

**URL:** https://community.mp3tag.de/t/how-to-decrease-the-tagsize-after-deleting-coverart/8891
**Category:** General Discussion
**Created:** [September 4, 2009, 1:41pm UTC](https://community.mp3tag.de/t/how-to-decrease-the-tagsize-after-deleting-coverart/8891 "2009-09-04T13:41:38Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Lupercus](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lupercus/32/215_2.png) [@Lupercus](https://community.mp3tag.de/u/Lupercus)
#### Post date: [September 5, 2009, 10:52am UTC](https://community.mp3tag.de/t/how-to-decrease-the-tagsize-after-deleting-coverart/8891/3 "2009-09-05T10:52:59Z")

</div>

Sorry to keep answering myself, but I found a solution via metaflac used in a batchfile, that seems to work.

 

@echo off  
title Reduce padding in FLAC - all files in directory  
for %%i in (\*.flac) do (  
echo Removing padding from "%%~ni.flac" ...  
"\metaflac.exe" --remove --block-type=PADDING --dont-use-padding "%%~ni.flac"  
if ERRORLEVEL 1 goto error  
echo Adding 4096 bytes of padding ...  
"\metaflac.exe" --add-padding=4096 "%%~ni.flac"  
if ERRORLEVEL 1 goto error  
echo -- Done  
echo.  
)  
echo.  
echo -- Padding reduced  
goto end  
:error  
echo.  
echo ---- ERROR REDUCING PADDING ---- batch process stopped  
:end  
echo.  
pause  
exit

 

Save this as f.i. "ReduceFLACPadding.bat" and place in the right-context-menu folder of explorer. This will reduce any oversized padding in all FLACs in the directory to a standard 4096 bytes, leaving the existing tags intact.

---

_[View the full topic](https://community.mp3tag.de/t/how-to-decrease-the-tagsize-after-deleting-coverart/8891)._
