mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
lol this was saving to 'uploadPath'
This commit is contained in:
11
src/image.js
11
src/image.js
@@ -11,7 +11,16 @@ image.resizeImage = function(path, extension, width, height, callback) {
|
||||
}
|
||||
|
||||
if(extension === '.gif') {
|
||||
imagemagick.convert([path, '-coalesce', '-repage', '0x0', '-crop', width+'x'+height+'+0+0', '+repage', 'uploadPath'], done);
|
||||
imagemagick.convert([
|
||||
path,
|
||||
'-coalesce',
|
||||
'-repage',
|
||||
'0x0',
|
||||
'-crop',
|
||||
width+'x'+height+'+0+0',
|
||||
'+repage',
|
||||
path
|
||||
], done);
|
||||
} else {
|
||||
imagemagick.crop({
|
||||
srcPath: path,
|
||||
|
||||
Reference in New Issue
Block a user