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
A chronological documentation test project, nothing serious, really!
identify filnavn.jpg Resultatet av denne kommandoen er da på formen JPEG 510×445 510×445+0+0 DirectClass 8-bit 24.8691kb
#!/bin/bash for dir in /home/* do cp /path/to/file “$dir” done
Digital Cameras embed several types of data inside the images you take, including camera manufacturer, date the picture was taken, and aperture, shutter speed, and focal length settings. These are called EXIF tags and are also called “metadata.” Here’s how to take advantage of these tags to embed your own copyright notice. You’ll need the […]
Move all files from directory dir into directories named by the original file extensions exiftool ‘-Directory<datetimeoriginal> Rename all images in dir according to the CreateDate date and time, adding a copy number with leading ‘-‘ if the file already exists (%-c), and preserving the original file extension (%e). Note the extra ‘%’ necessary to escape […]
Kode for å lage en mappestruktur på år og måneder #!/bin/bash for y in 2000 2001 2002 2003 2004 2005 2006 2007 do mkdir $y ; cd $y ; mkdir 01_Jannuary 02_February 03_March 04_April ; mkdir 05_May 06_June 07_July 08_August ; mkdir 09_September 10_October 11_November 12_December ; cd .. done