remcoboerma / jbrout

Automatically exported from code.google.com/p/jbrout
0 stars 0 forks source link

exiftran don't turn CIFS files (RESOLVED) #230

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Mount a CFIS disk from a samba server
2. Try to rotate a picture
3. exiftran do nothing and say Permission denied

What is the expected output? What do you see instead?
When i turn un picture, the thumbnail do not turn.

What version of the product are you using? On what operating system?
 0.3.338-0.6.svn338, Fedora18

Please provide any additional information below.
In tools.py, I have insert the Molecola patch and modify it with "..." to deal 
file's name with SPACEs :
            # Molecola patch
            #ret= _Command._run( [_Command._exiftran,opt,'-i',self.__file] ) # exiftran rotate internal exif thumb
            _Command._run( [_Command._exiftran,opt,self.__file,'-o',self.__file+'__tmp__.JPG'] ) # exiftran rotate internal exif thumb
            os.system('mv -f "%s" "%s"' % (self.__file+'__tmp__.JPG', self.__file))

and 
                # Molecola patch
                #ret= _Command._run( [_Command._exiftran,exiftranOpt,
                #              '-i',self.__file] )
                _Command._run( [_Command._exiftran,exiftranOpt,
                self.__file,'-o',self.__file+'__tmp__.JPG'] )
                os.system('mv -f "%s" "%s"' % (self.__file+'__tmp__.JPG', self.__file))

Original issue reported on code.google.com by jean.mar...@gmail.com on 6 Oct 2014 at 5:48