from io import StringIO
img_temp = StringIO()
inImage.save(img_temp, 'PNG')
img_temp.seek(0)
file_object = File(img_temp, filename)
Python/Django download Image from URL, modify, and save to ImageField