Hi Reinout, thanks for quick response :)
models.py file is almost not used - I need only ImageField to upload image. I get image content in views.py:
data = self.request.FILES['image'].read()
file_like = cStringIO.StringIO(data)
img = PIL.Image.open(file_like)
np_array = numpy.array(img)
And then I make operations on numpy array - it was ok in my previous tasks, however when I want to get exif:
scipy.misc.imsave(filename, np_array)
tags = subprocess.check_output('exiftool %s'%filename, shell=True)
os.remove(filename)
I miss a lot of specific information like: Primary Platform, CMM Flags, Device Model and so on.
I use curl:
curl -X POST -S -H 'Accept: application/json' -u "user:pass" -F "image=@basket.jpg;type=image/jpg" ip:port/exif/
I tried to change image/jpg to raw/binary and use FileField instead of ImageField in models.py - no results.