magazines scripts
This commit is contained in:
@@ -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
|
@@ -0,0 +1,3 @@
|
||||
for %%i in (*.png) DO (
|
||||
convert %%i -resize 4840x3444 small\%%i
|
||||
)
|
@@ -0,0 +1,4 @@
|
||||
if not exist rotated mkdir rotated
|
||||
for %%i in (*.png) DO (
|
||||
convert %%i -rotate 90 rotated\%%i
|
||||
)
|
Reference in New Issue
Block a user