title: convert DCOM to JPG
body: <p>I need to convert DCOM image into JPG image, I'm using <code>class_dicom.php</code> from <a href="http://deanvaughan.org/wordpress/dicom-php-class/" rel="nofollow">this site</a>.
  But I can't save converted image in my <code>var_dump()</code>. The following is the response:</p>
  
  <pre><code>object(dicom_convert)#1 (5) {
      ["file"] =&gt; string(62) "img/dcom/1.2.826.0.1.3680043.2.634.0.12779.2012316.9235.11.dcm"
      ["jpg_file"] =&gt; string(66) "img/dcom/1.2.826.0.1.3680043.2.634.0.12779.2012316.9235.11.dcm.jpg"
      ["tn_file"] =&gt; string(69) "img/dcom/1.2.826.0.1.3680043.2.634.0.12779.2012316.9235.11.dcm_tn.jpg"
      ["jpg_quality"] =&gt; int(100)
      ["tn_size"] =&gt; int(125)
  }
  </code></pre>
  
  <p>So, as I understood, in <code>jpg_file</code> I have saved(?) JPG image, or not? If not, how can I save it?</p>
  
  <p>because if I use </p>
  
  <pre><code>$jpg = imagecreatefromjpeg('http://localhost/'.$d-&gt;jpg_file);
  imagejpeg($jpg, NULL);`
  </code></pre>
  
  <p>I had an error</p>
  
  <pre><code>Warning: imagecreatefromjpeg(http://localhost/img/dcom/1.2.826.0.1.3680043.2.634.0.12779.2012316.9235.11.dcm.jpg) [function.imagecreatefromjpeg]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in O:\home\localhost\www\dcm_to_jpg.php on line 29
  
  Warning: imagejpeg(): supplied argument is not a valid Image resource in O:\home\snimki\www\dcm_to_jpg.php on line 30
  </code></pre>
  
  <p>So can anyone halp with my question?</p>
  
  <p><strong>UPD1:</strong></p>
  
  <p>Ok, as I can see, I can't save the converted image, and so I can't access the file which not exists... So I have second question, can anyone help me to save converted JPG picture which I get from <code>class_dicom.php</code> class... I just can't find there function for saving file...</p>