Photo etc

Embed copyright notices into JPEG images

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 […]

Read More
Linux

Organise images using exiftool

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 […]

Read More
Scripting

Lage mappestruktur

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

Read More
Linux

Preserve Code formatting in WordPress

WordPress har en lei tendens til å fjerne formatteringen på alle themes. Løsningen for å vedlikeholde formatteringen er å legge/endre følgende linje i wp-content/themes/themenavn/style.css fila under code { }: code, pre { white-space: pre; } Man må da benytte pre-taggen for å beholde formatteringen.

Read More