I've written a program that repairs Sony ARW2 raw compression artifacts and produces an uncompressed DNG file with the repaired raw data... but the only way I could get the various DNG fields consistent was to use the windows Adobe DNG Converter via the command line interface to create the file (which I then locate the image data in and replace with the repaired data). For testing, I need to have the program run from a C program invoked using the CGI interface under Apache on Centos.
The DNG converter works fine run from a script, or C program, via SSH even without an X display set, but it fails when run from the CGI C program under Apache. All the other C code and programs run from the CGI C program work fine, so it isn't a problem with access to the image files... I'm thinking it's either an X issue or a DLL path thing, but I don't know. What do I need to change to make wine work there?
PS: I can imagine some very hacky ways to do it via ssh to a different user on the same machine... but that's UGLY.
Running Adobe DNG Converter from Centos Apache CGI
Re: Running Adobe DNG Converter from Centos Apache CGI
You didn't mention what Wine version you're using. If it's not the latest development release, upgrade. If the problem is present in current Wine, post terminal output.
Re: Running Adobe DNG Converter from Centos Apache CGI
I found a workaround:
I run wine with "" in front and...
used sudo visudo to add one line:
That is actually a little scary (too much permission),
but it can be tuned easily to be more restrictive.
I run wine with "
Code: Select all
sudo -u myuser
used sudo visudo to add one line:
Code: Select all
apache ALL = (ALL) NOPASSWD:/usr/bin/wine
but it can be tuned easily to be more restrictive.