Question

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.

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top