Linux

WebDAV with cadaver

Upload multiple files: cadaver mput DSC* Uploads all files named DSC* in reverse order, greatest number first. I’m using cadaver to upload files to my eZ Publish CMS site.

Read More
Linux

Watermark images with imagemagick ++

Script som legger til watermark tekst: #!/bin/bash width=`identify -format %w DSC06861.JPG`; \ convert -background ‘#0008’ -fill white -gravity center -size ${width}x90 \ -pointsize 36 \ caption:”Copyright (c) 2007 Pario.no” \ +size DSC06861.JPG +swap -gravity north -composite Output_image_watermarked.jpg Vis hvilke bildeformater imagemagick støtter: convert identify -list format

Read More
Linux

USB Corsair Flash Voyager and udev rules

I had some problems making my new Corsair Flash Voyager 1Gb work under udev. Until now I used the SYSFS{serial}= part from udevinfo to distinguish my usb devices. Corsair Flash Voyager doesn’t have one. So I put the following line in /etc/udev/rules.d/10-local.rules to make it work: KERNEL=”sd*”, SYSFS{vendor}=”Corsair”, SYSFS{model}=”Flash*Voyager*”, NAME{all_partitions}=”corsair%n”, GROUP=”disk” The first partition of […]

Read More