I’ve been looking to further tweak the [intlink id=“75” type=“post”]Media Center Master post-processing script[/intlink] I’ve previously written about — partially to fix a few new files that were being incorrectly detected by Stark Covers, and also to build in some automatic image resizing which, as I’ve previously detailed, helps to [intlink id=“74” type=“post”]improve the performance of Media Browser[/intlink].
Below is a new script which uses the free ImageMagick to resize images after processing them with stark covers
[সজোরে আঘাত]C:
CDProgram Files (এক্স 86)Media Center MasterStarkCovers.10.28.2009
IF “%2” == “BD” goto bd
IF “%2” == “HDDV” goto bd
IF “%2” == “ডিভিডি” goto bd
IF “%2” == “mkv” goto bd
IF “%2” == “generic” goto generic
IF “%2” == “DivX” goto sd
IF “%2” == “Mpeg” goto sd
start “” /WAIT /I /SEPARATE StarkCovers.exe %1 ‑codec ‑revertjpg 3d2
goto end
:বিডি
start “” /WAIT /I /SEPARATE StarkCovers.exe %1 3d3%2 ‑revertjpg
goto end
:sd
start “” /WAIT /I /SEPARATE StarkCovers.exe %1 3d2%2 ‑revertjpg
goto end
:generic
for /f “tokens=1,2 delims=.” %%a in (%3) do set mtype=%%b
for /f “tokens=1,2 delims= ” %%a in (%3) do set ftype=%%a
if “%ftype%” == “Z:VideosHD” goto generichd
start “” /WAIT /I /SEPARATE StarkCovers.exe %1 3d2%mtype% ‑revertjpg
goto end
:generichd
start “” /WAIT /I /SEPARATE StarkCovers.exe %1 3d3%mtype% ‑revertjpg
:শেষ
থেকে:
cd %1“c:program filesimagemagick‑6.6.4‑Q16convert.exe” folder.png ‑resize 400 folder.png[/সজোরে আঘাত]
“Hi James I realise it has been a long while, but I just checked this on windows 11 (build 23H2)…”