0

Hello mates,
    I was wondering if in that vast amount of knowledge floating around here if any of you knew how I could save an image using Python 3.x. I know that PIL is a great, and easy option for Python 2, but I assume there must be some way to do this with 3. Ideas?

2
Contributors
7
Replies
11
Views
6 Years
Discussion Span
Last Post by JoshuaBurleson
0

In the mean time I'm committing a horrible offense by assuming the user won't mess with the location of their image files "and that they only use gifs but that's another story altogether" and doing:

###Save Image###
        contact_image={self.name1.capitalize(): self.file1}
        pics.update(contact_image)
        f=open('piclocs.dat','wb+')
        pickle.dump(pics,f)
        f.close()

where pics is a dictionary of the key "names" and their respective getfilename() locations "also know as self.file1 in this case"

0

Until now I have been satisfied to code for PIL in Python 2

Edited by pyTony: n/a

0

Well if you do ever get one of these up and running let me know how you did it, it looks like I might need to compile the C files or something along those lines

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.