Hi,
 Every object in `request.FILES` is actually a file *liike* object that you
can use for processing. I guess you can use something like
`PIL.Image.frombytes` with the `request.FILES[filename].read()` data.

Django Doc for the `request.FILES`:
https://docs.djangoproject.com/en/1.10/ref/files/uploads/#django.core.files.uploadedfile.UploadedFile
Pillow (PIL Fork) documentation for the `frombytes` method:
https://pillow.readthedocs.io/en/3.3.x/reference/Image.html#PIL.Image.frombytes

Hope that helps.
Regards,

Asad Jibran Ahmed <[email protected]>
http://blog.asadjb.com

On Fri, Aug 26, 2016 at 7:46 PM, ali Eblice <[email protected]> wrote:

> Hello Friends
> is it possible to manipulate image in PIL after uploading directly by its "
> *request.FILES.GETLIST(FORMFIELD)*"  address not the saved picture on
> hard disk?
>
> I wrote a function for manipulating  but its only working with  "
> *Image.open('a.jpg')* " but i don't want to save image after uploading
> and then opening it for manipulating , is it possible to manipulate image
> with its "request.FILES" object address?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/9b6734c8-4530-42b3-b791-99bbce020b32%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/9b6734c8-4530-42b3-b791-99bbce020b32%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BYYaWeTsyGvKeZ8uo_veyg_YrzQtR3y1Hsr8q37GGhXvGEcPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to