magazines scripts

This commit is contained in:
tomse
2023-12-21 02:01:29 +01:00
parent c9b25e6672
commit 3d31705696
53 changed files with 941 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
if not exist cropped mkdir cropped
setlocal enabledelayedexpansion enableextensions
rem start coords
set /a cy=0
set /a cx=0
rem size
set x=4473
set y=6167
for %%i in (*.tif) DO (
rem set /A cy=%cy%-3
rem convert %%i -crop %x%x%y%+%cx%+!cy! +repage -type Grayscale cropped\%%i.png
convert %%i -crop %x%x%y%+%cx%+!cy! +repage cropped\%%i.png
)
endlocal
rem convert *.jpg -crop 1600x2490+213+2450 +repage pages/even/even.jpg

View File

@@ -0,0 +1,3 @@
for %%i in (*.png) DO (
convert %%i -resize 4840x3444 small\%%i
)

View File

@@ -0,0 +1,4 @@
if not exist rotated mkdir rotated
for %%i in (*.png) DO (
convert %%i -rotate 90 rotated\%%i
)