- Code: Select all
/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/public/
I've got that working in a test environment (meaning I run it manually at the command line). But then I have the hurdle I had before--the image straight copied over from the camera is too big for IWS/the reflector to serve.
So I'm trying to repurposethe old script that is here to compress the image. And that's the first hole I fall down. (the second is getting python to call wget using subprocess, but I can live with that not working for now.)
- Code: Select all
from PIL import Image
import math, StringIO
BigImage = Image.open("/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/public/" + "whatever.jpg")
im = Image.open(StringIO.StringIO(BigImage))
results in "IOError: cannot identify image file '/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/public/whatever.jpg'"
I've researched the hell out of this and almost every answer I find talks about way over my head stuff about PIL not being right and issues with the library, but I bet my problem is much much more basic than that.
Anyone have insights? There definitely is a whatever.jpg in that location.