title: cvLoadImage() fails whem loading *.jpg
body: <p>I am trying to load a JPEG image using the <code>cvLoadImage</code> function and it fails. I get the output "image not loaded" (see the code below). However a window appears but no picture.
  When trying to load png pictures the <code>cvLoadImage</code> operation is successful, i.e. the picture is presented in a window. Is there a package that I might be missing or what am I doing wrong?</p>
  
  <p>I am using openCV on Ubuntu. </p>
  
  <pre><code>IplImage* img = NULL;
  
  if( argc &gt; 1 )
      img = cvLoadImage(argv[1], 1);
  
  if(img == 0)
      printf("image not loaded \n")
  </code></pre>