No more EXIF, for real. Use exifread. This should fix recent import EXIF failures.
This commit sponsored by Aaron Whitehouse. Thank you!
This commit is contained in:
@@ -14,10 +14,7 @@
|
|||||||
# You should have received a copy of the GNU Affero General Public License
|
# 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/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import sys
|
from exifread import process_file
|
||||||
sys.path.append('extlib/exif')
|
|
||||||
|
|
||||||
from EXIF import process_file
|
|
||||||
from exifread.utils import Ratio
|
from exifread.utils import Ratio
|
||||||
|
|
||||||
from mediagoblin.processing import BadMediaFail
|
from mediagoblin.processing import BadMediaFail
|
||||||
|
|||||||
Reference in New Issue
Block a user