Posts Tagged With: image

Convert RAW files to JPEG

Tagged with: , , , , , ,

Convert RAW files to JPEG in batch. Convert all files in a folder using a command. For this to work, first you must have ‘ufraw’ package installed. sudo apt-get install ufraw or sudo yum install ufraw depending on your OS.


find . -type f -name "*.CR2" -exec ufraw-batch --out-type=jpeg '{}' \;
No Comments »

Trim Image Edge

Tagged with: , , , , , ,

Use this command to cut off the edges off an image…


convert -trim image.jpg output.jpg
No Comments »

A Shell Scirpt to Mount ISO files

Tagged with: , , , , ,

A Shell Scirpt to Mount ISO files – call it using the command moustiso.sh ImageFile.iso. You need a folder called /mnt/Image for this to work


#!/bin/sh
sudo mount -o loop "$*" /mnt/Image/
3 Comments »

Backup MBR to Image File

Tagged with: , , , , , , ,

Make a copy of MBR (Master Boot Record) to a file.


dd if=/dev/hda of=mbr.img bs=512 count=1

dd if=mbr.img of=/dev/hda bs=512 count=1 #restore the MBR
No Comments »

Backup HDD To Remote Host

Tagged with: , , , , , , , , , , ,

Make a backup of a local hard disk on remote host via ssh


dd bs=1M if=/dev/hda | gzip | ssh user@ip_addr 'dd of=hda.gz'
No Comments »

Backup Entire Harddrive to an Image

Tagged with: , , , , , , , ,

Backup content of the harddrive to a file. Creates an image of the drive


dd if=/dev/sda of=/tmp/sda.iso
4 Comments »

Shell Script for Batch Convertion of Images

Tagged with: , , , , , ,

An easier way to batch convert images using the ‘convert’ command


#!/bin/sh
# An Easy command to use the convert command. Makes sure that the rename problem don't happen

if [ ! -d "Out" ]; then
        mkdir Out
fi

sel="*.*"
if [ $# -eq 2 ] ; then
        sel=$2
fi

for i in $sel; do
        echo -n "Converting $i ... "
        convert $1 $i Out/$i
        echo "Done"
done
3 Comments »

Burn Compressed ISO Image

Tagged with: , , , , , , , , , ,

Burn a compressed ISO image


gzip -dc cd_iso.gz | cdrecord dev=/dev/cdrom
No Comments »

Batch Resize Image

Tagged with: , , , , , , ,

Resize all JPG Files to 800×600


convert -sample 800x600 *.jpg output_file_name
5 Comments »

Convert Bin/Cue Images to ISO Image using Linux Command

Tagged with: , , , , , , ,

You can use this command to convert a Bin/Cue image to an ISO image in a linux system. You may not have the bchunk command – so use yum or apt to install it before converting the image.


bchunk IMAGE.bin IMAGE.cue IMAGE.iso

Original Article

2 Comments »