title: How to capture RAW JPG with picamera in a python script
body: <p>I have a raspberry pi camera which I am using to take some pictures. I want to take some raw jpg pictures. Upon searching online, I found out that I can accomplish it using the following command:</p>
  
  <pre><code>raspistill --raw -o image.jpg
  </code></pre>
  
  <p>However, I want to accomplish the same thing in my script. I do realize that I can use os/subprocess library to execute the above mentioned command in my script. However, I am looking for a particular function in the PiCamera library.</p>
  
  <p>For example, to enable still stats, I can use -st flag to turn it on. However, I can accomplish the same thing using the following line in my python script:</p>
  
  <pre><code>camera.still_stats = True
  </code></pre>
  
  <p>Along the same lines, I want to take raw JPG image in my script.</p>