Hi,
I think your trying to write over the same file you read from is the issue on Mac OS X.
Code:
kbhend$ ./jpegtran -optimize -progressive -copy none -outfile ../junk.jpg ../PluginRunner.jpg
It successfully creates junk.jpg with no errors.
But if I try to overwrite the same file in-place ...
Code:
kbhend$ ./jpegtran -optimize -progressive -copy none -outfile ../test.jpg ../test.jpg
Empty input file
I get back the same "Empty input file" error I saw previously.
So at least on Mac OS X you can't overwrite in place.
Hope this helps,
KevinH
Quote:
Originally Posted by Toxaris
As it is now, I am detecting if it is running on Windows or other. If it is running on other, it will not give a pathname, but just execute the command. For jpegtran the command would be like:
jpegtran -optimize -progressive -copy none -outfile <filename> <filename>
Could you check if that is working on OSX?
|