Issue
For example I want to manipulate some image and then save it to a particular directory. How do I save to a specific directory other than the one I am in? I understand that this will save to the directory I am in:
from PIL import Image
""" Some Code """
img.save("sample.png", "")
How do I save to a different directory?
Solution
Try this
img.save('/absolute/path/to/myphoto.jpg', 'JPEG')
Answered By - itzMEonTV Answer Checked By - Mary Flores (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.