title: How to read bmp files in tensorflow?
body: <p>I'm trying to read BMP files in TensorFlow in the following way:</p>
  
  <pre><code>reader = tf.TextLineReader()
  _, value = reader.read(filename_queue)
  filename, label = tf.decode_csv(value, [[''], [0]])
  
  im = tf.decode_raw(tf.read_file(filename), tf.uint8)
  </code></pre>
  
  <p>The error is the following:</p>
  
  <pre><code>E tensorflow/core/client/tensor_c_api.cc:485] Input to reshape is a tensor with 44200 values, but the requested shape has 750000
         [[Node: batch_processing/Reshape = Reshape[T=DT_UINT8, _device="/job:localhost/replica:0/task:0/cpu:0"](batch_processing/Slice, batch_processing/Reshape/shape)]]
  E tensorflow/core/client/tensor_c_api.cc:485] Input to reshape is a tensor with 33871 values, but the requested shape has 750000
         [[Node: batch_processing/Reshape = Reshape[T=DT_UINT8, _device="/job:localhost/replica:0/task:0/cpu:0"](batch_processing/Slice, batch_processing/Reshape/shape)]] 
  E tensorflow/core/client/tensor_c_api.cc:485] Input to reshape is a tensor with 47566 values, but the requested shape has 750000     
         [[Node: batch_processing/Reshape = Reshape[T=DT_UINT8, _device="/job:localhost/replica:0/task:0/cpu:0"](batch_processing/Slice, batch_processing/Reshape/shape)]]
  </code></pre>
  
  <p>Why does the output of <strong>tf.decode</strong> change? How can I solve the problem?</p>
  
  <p>Any help would be appreciated.</p>