mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
fix: #7634, make strip exif configurable
This commit is contained in:
@@ -9,6 +9,7 @@ var winston = require('winston');
|
||||
|
||||
var file = require('./file');
|
||||
var plugins = require('./plugins');
|
||||
var meta = require('./meta');
|
||||
|
||||
var image = module.exports;
|
||||
|
||||
@@ -92,7 +93,7 @@ image.size = function (path, callback) {
|
||||
};
|
||||
|
||||
image.stripEXIF = function (path, callback) {
|
||||
if (path.endsWith('.gif')) {
|
||||
if (!meta.config.stripEXIFData || path.endsWith('.gif')) {
|
||||
return setImmediate(callback);
|
||||
}
|
||||
async.waterfall([
|
||||
|
||||
Reference in New Issue
Block a user