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.

有帮助吗?

解决方案

Yes, as the ImageField documentation states:

Requires the Pillow Library.

You can use either PIL or Pillow, but the latter contains many fixes and improvements over the original package, and only Pillow works on Python 3. I'd install Pillow.

The dependency is used to determine the image dimensions.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top