Tag: identify
Scripting
Read More
Get the dimensions of most images from the command line
identify filnavn.jpg Resultatet av denne kommandoen er da på formen JPEG 510×445 510×445+0+0 DirectClass 8-bit 24.8691kb
Photo etc
Read More
Improved watermark script with imagemagick
#!/bin/bash # Use a shell loop #mkdir thumbnails if [ ! -f *.JPG ] ; then echo “Ingen filer tilgjengelig!” else for file in *.JPG do width=`identify -format %w ${file}`; \ convert -background ‘#0008’ -fill white -gravity center -size ${width}x90 \ -font Sketchy -pointsize 50 \ caption:”Copyright © 2007 Pario.no” \ +size ${file} +swap -gravity […]