0

OK. Been working on submitting a form where on of the fields is an imagefield and save as an object in the database. Can't get anything to work... So Im back where im started and my simple question is:

Do i need to install Pillow or PIL to make this? If so which would you recommend?

Thanks!

UPDATE: NO. Using PIL/Pillow is only required if you want to do image processing.

4

1 回答 1

3

是的,正如ImageField文档所述:

需要枕头库。

您可以使用 PIL 或 Pillow,但后者包含对原始包的许多修复和改进,并且只有 Pillow 适用于 Python 3。我会安装 Pillow。

依赖关系用于确定图像尺寸。

于 2014-02-02T03:10:24.067 回答