lol this was saving to 'uploadPath'

This commit is contained in:
Baris Soner Usakli
2014-02-20 21:26:05 -05:00
parent f83cd7c133
commit 5aed1208c0

View File

@@ -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,