Skip to content

parseIdentify() : skip also lines containing only whitespace #62

Merged
merged 1 commit into from Oct 20, 2012

2 participants

@nuarhu
nuarhu commented Oct 17, 2012

Hi,

identify output containing lines with only whitespace leads to an exception in line 156 (today's master). The stdout from identify contains:

Properties:
  date:create: 2012-10-17T09:08:35+02:00
  date:modify: 2012-10-17T09:08:35+02:00
  exif:Artist: Corbis
  exif:Compression: 6
  exif:YResolution: 72/1
  jpeg:colorspace: 2
  jpeg:sampling-factor: 1x1,1x1,1x1
  MicrosoftPhoto:Rating: 63
  rdf:Alt: 


  signature: c259218a328758e7fa45b1bb3451469f8745cbe8800b6c7f7f308c7d3b875ed1
  unknown: 4
  xmp:CreateDate: 2008-02-11T19:32:43.173Z
  xmp:Rating: 4
Profiles:
  Profile-exif: 5153 bytes
  Profile-xmp: 2895 bytes

I have removed some lines to shorten it, but this is only about the seemingly empty lines in the middle: they contain several tabs.

The failing image is one included by default with Windows7 (Koala.jpg). It is processed fine after the fix.

@rsms rsms merged commit b830fe9 into rsms:master Oct 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.