Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix convert and add sutter

  • Loading branch information...
commit 5a01c37faa08554539840c114b93084a35ee89af 1 parent 410f938
Ivan Shumkov authored
Showing with 8 additions and 8 deletions.
  1. BIN  public/swf/shutter.mp3
  2. +8 −8 server.js
BIN  public/swf/shutter.mp3
View
Binary file not shown
16 server.js
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.