batch convert ONLY first tif (tif has two files)
Posted: 2018-01-07T15:47:52-07:00
Hi everyone
So I have a tif that has two files inside. I only need to convert one
convert 1.tif[0] 1.jpg
or
covert 1.tif[0] n/1.tif
works fine
But how do I do it in batch in Windows?
For example if I simply want to convert and place into subfolder.
So I have a tif that has two files inside. I only need to convert one
convert 1.tif[0] 1.jpg
or
covert 1.tif[0] n/1.tif
works fine
But how do I do it in batch in Windows?
For example if I simply want to convert and place into subfolder.
Code: Select all
$raws=Get-ChildItem . | where {$_.Extension -match "tif"}
foreach ($raw in $raws) {
convert $raw[0] n/$raw
}
doesn't work