valibuk.net

A place for opinions and notes of a valibuk.

Preparing photos for a web photo album

Tagged with: — ondrej at 12:02 am on Monday, October 30, 2006

A few tips how to prepare photos for a web photo album:

  1. Make a copy of the picture that you would like to have on web. The following steps include instructions that will irreversibly change your photos.
  2. Rotate them correctly. A lot of cameras writes an information about the rotation into the header of a image file (one of the EXIF values). Unfortunately not all web albums can recognise this information correctly.
    Install the jhead application and type this:

    1. jhead -autorot photo.jpg
  3. Remove unnecessary data. My Canon camera saves also a thumbnail of the photo into the image file, that is cca 10kB. It is completely useless for a web album (it will create its own thumbnails anyway).
    It is easy to remove it with the jhead application:

    1. jhead -dt photo.jpg

    Of course, the first and the second step can be done together for all your pictures:

    1. jhead -dt -autorot *
  4. Reduce the resolution. If you do not need to publish your photos in the full resolution (no, you do not need, indeed ;), it is a good idea to reduce the resolution to save visitor’s time and bandwidth.
    I like the mogrify application from the ImageMagick package. The following line reduces the resolution to 1024×768 and reduces the JPEG quality to 70%:

    1.  

    Do not worry about rotated photos, mogrify will handle them correctly.

Well, your photos (as image files) are ready for your web album :)

P.S.
For the SimpleViewer Flash album viewer I make a copy of image files to the thumbs directory and use the following command to make thumbnails:

  1.  
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • DZone
  • Digg
  • Reddit
  • Technorati
  • Furl
  • NewsVine
  • Slashdot
  • Ma.gnolia
  • StumbleUpon

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Comment Preview


commercial break :)

Make an account on slicehost.com -- a really good hosting where you have your own virtual machine. I installed Gentoo there = I like it very much ;)