Quote:
Originally Posted by KevinH
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
|
That helps a lot. Together with the new algorithm I have written to detect the OS, it would work. I think I will include the OSX executables just like the Windows executables. On Linux they can be retrieved easily enough.