Permalink
Browse files

fix convert and add sutter

  • Loading branch information...
1 parent 410f938 commit 5a01c37faa08554539840c114b93084a35ee89af @shumkov committed Jun 3, 2011
Showing with 8 additions and 8 deletions.
  1. BIN public/swf/shutter.mp3
  2. +8 −8 server.js
View
Binary file not shown.
View
@@ -189,24 +189,24 @@ function deleteAllImagesRequest(request, response) {
function convertOriginal(url, name, callback) {
im.convert([
- '-resize', '1280x1024', url, '-sampling-factor', '2x1', '-support', '0.9',
- '-resize', '1280x1024', '-format', '"%w %h %[EXIF:DateTime]"',
- '-identify', '-quality','90', name
+ '-size', '1280x1024', url, '-sampling-factor', '2x1', '-support', '0.9',
+ '-resize', '1280x1024>', '-format', '"%w %h %[EXIF:DateTime]"',
+ '-identify', '-quality','90', '-auto-orient', name
], callback);
}
function convertPreview(url, name, callback) {
im.convert([
- '-resize', '150x200', url, '-sampling-factor','2x1', '-support', '0.9',
- '-resize', '150x200', '-format', '"%w %h %[EXIF:DateTime]"',
- '-identify', '-quality', '90', name
+ '-size', '150x200', url, '-sampling-factor','2x1', '-support', '0.9',
+ '-resize', '150x200>', '-format', '"%w %h %[EXIF:DateTime]"',
+ '-identify', '-quality', '90', '-auto-orient', name
], callback);
}
function convertThumb(url, name, callback) {
im.convert([
- '-resize', '76x76', url, '-thumbnail','76x76^', '-unsharp','0x1+1+0',
- '-quality','90', '-flatten', '-gravity','center', '-extent', '76x76',
+ '-size', '76x76', url, '-thumbnail','76x76^', '-unsharp','0x1+1+0',
+ '-quality','90', '-auto-orient', '-flatten', '-gravity','center', '-extent', '76x76',
name
], callback);
}

0 comments on commit 5a01c37

Please sign in to comment.