Use system wide EXIF package, if available.
Created and tested by Simon Fondrie-Teitler. Thanks!
This commit is contained in:
parent
d9b59fc6e1
commit
657a463799
@ -14,7 +14,11 @@
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from mediagoblin.tools.extlib.EXIF import process_file, Ratio
|
||||
try:
|
||||
from EXIF import process_file, Ratio
|
||||
except ImportError:
|
||||
from mediagoblin.tools.extlib.EXIF import process_file, Ratio
|
||||
|
||||
from mediagoblin.processing import BadMediaFail
|
||||
from mediagoblin.tools.translate import pass_to_ugettext as _
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user