fixed images
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
echo Processando immagini PNG nella cartella...
|
||||
|
||||
for %%f in (*.png) do (
|
||||
echo ---
|
||||
echo File: %%f
|
||||
|
||||
rem 1. Trim del bordo bianco
|
||||
magick "%%f" -trim +repage "_tmp_%%f"
|
||||
|
||||
rem 2. Aggiunta margine 15%
|
||||
magick "_tmp_%%f" -bordercolor white -border 15%x15% "%%f"
|
||||
|
||||
rem 3. Rimozione file temporaneo
|
||||
del "_tmp_%%f"
|
||||
|
||||
echo Fatto: %%f
|
||||
)
|
||||
|
||||
echo Operazione completata!
|
||||
pause
|
||||
Reference in New Issue
Block a user