【发布时间】:2013-07-12 07:26:15
【问题描述】:
我正在尝试从许多不同类型的图像(JPG、PNG 等)中提取 EXIF 和 XML 数据。我在 models.py 文件中定义了一个名为 image 的类,如下所示:
class image(models.Model):
image = models.ImageField(upload_to='directory/')
title = models.CharField(max_length=60, blank=True, help_text="Descriptive image title")
meta = #?
如何提取元数据并将元数据包含在我的模型中?
【问题讨论】:
-
这个链接有助于解决这个问题吗? stackoverflow.com/questions/3973586/…
标签: python django python-2.7 django-models metadata