# jpg into JPG
rename -v 's/\.jpg$/\.JPG/' *.jpg
# pvm + aika + jokunimi
for i in *.JPG; do exiv2 -v -r '%Y%m%d.%H%M%S.tammihelmi2014' rename "$i"; done
# exif-ajan mukaan
find . -iname '*jpg' -exec jhead -n%Y_%m_%d__%H_%M_%S {} +
#
find . -iname '*.JPG' -execdir mogrify -verbose -resize 1200 -quality 95 {} \;
mogrify -verbose -brightness-contrast 1x1 -resize 1200 -quality 95 *.jpg
fldr
cd fldr
jhead -autorot *.JPG
mkdir isot
cp *.JPG ../isot
mogrify -verbose -resize 800 -quality 85 *.JPG
fldr
-kansion kuvien polut atomiin(^IM.+JPG)
<a href="./isot/$1"><img src="$1"></a> \n</br>\n <i>$1</i>\n</br>\n
---
title: "Kuvagalleria"
date: "Eilen"
output:
html_document:
theme: yeti
toc: true
toc_float: true
---
IMG_2038.JPG
IMG_2049.JPG
rmarkdown::render("file.Rmd")
TAI
(^IM.+JPG)
<a href="$1"><img src="$1" width="800px"></a> \n</br>\n <i>$1</i>\n</br>\n
#!/bin/bash
# processes raw files
cd kuvat_isot
# change the image names
for i in *.jpg;
do
mv "$i" "${i/.jpg}".JPG;
done
jhead -autorot *.JPG
zip ../isot.zip *.JPG
cp *.JPG ../kuvat_pienet
cd ../kuvat_pienet
#mogrify -verbose -resize 800 -quality 85 *.JPG
# mogrify -verbose -brightness-contrast 5x5 -resize 800 -quality 85 *.JPG
mogrify -verbose -resize 800 -quality 85 *.JPG # ajetaan vaan koonmuutos, koska uudet kuvat Minnan ottamia ja säädettyjä
zip ../pienet.zip *.JPG
cd ..
#!/bin/bash
# create dir for the burst pdf pages
mkdir pdfs
# burst source pdf
pdftk file.pdf burst output pdfs/page_%03d.pdf
# convert all pdfs witihin the folder into jpf
for i in pdfs/*.pdf ; do convert -density 200 "$i" "${i%.*}.jpg" ; done
mp4:set musaksi
for i in *.mp4;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -i "$i" -b:a 192K -vn "${name}.mp3";
done
DVD mp4:ksi
ffmpeg -i VTS_01_1.VOB -acodec mp2 -ab 224k -ar 44100 video.mp4
DVD mp4:ksi
ffmpeg -i VTS_01_1.VOB -acodec mp2 -ab 224k -ar 44100 video.mp4
MOV mp4:ksi
ffmpeg -i video.wmv -c:v libx264 -crf 23 -c:a libvo_aacenc -q:a 100 video.mp4
Copyright © 2016 Markus Kainu. No rights reserved.