so here we go. i am currently making a script for myself. it is basically rotating and resizing a number of images. i am just a beginner and i chose python because i might need to make some more scripts, and it is not so hard to learn. so i am just starting the script, and am developing a script that will rotate and resize one image. here is what i have so far:
[CODE=python]
import Image
im = Image.open("/home/bella/Desktop/LEMONKIWI.jpg")
out = im.resize((612, 600))
out = im.rotate(90) # degrees clockwise
im.save(file + ".jpg", "JPEG")
[/CODE]
i know"
-it doesnt work
- the reason is the last line.
so basically i am asking, what to write for the last line tomake sure that the picture is saved. ?.
a HUGE thank to whoever helps me.
[CODE=python]
import Image
im = Image.open("/home/bella/Desktop/LEMONKIWI.jpg")
out = im.resize((612, 600))
out = im.rotate(90) # degrees clockwise
im.save(file + ".jpg", "JPEG")
[/CODE]
i know"
-it doesnt work
- the reason is the last line.
so basically i am asking, what to write for the last line tomake sure that the picture is saved. ?.
a HUGE thank to whoever helps me.
Comment