Scripting

Grab several screenshots from specified window in linux

This was a short bash script I wrote to help document some startup problems on a server. The script was grabbing screen dumps from iDRAC during boot on a RHEL6 server, but it can be used on other distributions as well since the console command xwd is common. #!/bin/bash # Description: # Grab screenshot of […]

Read More
Linux

Extracting images from Adobe Acrobat PDF file

This is a short example of how to extract images from a PDF file using ImageMagick # convert thePDFfile.pdf page-%03d.png # ls page* page-000.png page-001.png page-002.png Imagemagick can also be used to create Adobe Acrobat PDF documents convert DSC* resultFile.pdf The resultfile contains one image per page.

Read More
Linux

Resize and watermark images using Imagemagick

This is a modified version of my Resize of images in a folder with imagemagick post back in February. Only difference this time is that i strips out EXIF tags and the script has been cleaned up a bit. Click on the image to see the result in full size. #!/bin/bash # Description: # Script […]

Read More
Photo etc

Adjust images to a digital frame (480×234 pixels)

This bash script adjusts images to fit in a digital frame with a resolution of 480×234 pixels however by using the size 832×468 pictures are displayed sharper on some frames. Normally, narrower pictures will have black borders at both sides when displayed. but this script makes the border color the average of the picture. The […]

Read More