Skip to content

Commit

Permalink
This reverts commit 38f5f55, reversing
Browse files Browse the repository at this point in the history
changes made to 5a14305.
  • Loading branch information
rwky committed Sep 23, 2015
1 parent 27358c2 commit f04ba5e
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 27 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ examples/imgs/*
!examples/imgs/photo.JPG
!examples/imgs/orientation/*\d.jpg
!examples/imgs/orientation/*.correct.jpg
!examples/imgs/icon.ico
*.sw*
.idea
Binary file removed examples/imgs/icon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ function gm (source, height, color) {
var inputFromStdin = this.sourceStream || this.sourceBuffer;
var ret = inputFromStdin ? '-' : this.source;

if (inputFromStdin && this.source && this.source !== 'unknown.jpg') ret = this.source.split('.').pop() + ':-';
if (ret && this.sourceFrames) ret += this.sourceFrames;

src.length = 0;
Expand Down
21 changes: 0 additions & 21 deletions test/formatInference.js

This file was deleted.

3 changes: 2 additions & 1 deletion test/gifFrameStream.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

var assert = require('assert')
var fs = require('fs');

Expand All @@ -6,7 +7,7 @@ module.exports = function (_, dir, finish, gm) {

var args = m.args();
assert.equal('convert', args[0]);
assert.equal('gif:-[0]', args[1]);
assert.equal('-[0]', args[1]);

if (!gm.integration)
return finish();
Expand Down
2 changes: 1 addition & 1 deletion test/resizeAndAutoOrientFromBuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function (_, dir, finish, gm) {

var args = m.args();
assert.equal('convert', args[0]);
assert.equal('jpg:-', args[1]);
assert.equal('-', args[1]);
assert.equal('-resize', args[2]);
if (m._options.imageMagick) {
assert.equal('20%', args[3]);
Expand Down
2 changes: 1 addition & 1 deletion test/resizeBuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function (_, dir, finish, gm) {

var args = m.args();
assert.equal('convert', args[0]);
assert.equal('jpg:-', args[1]);
assert.equal('-', args[1]);
assert.equal('-resize', args[2]);
if (m._options.imageMagick) {
assert.equal('48%', args[3]);
Expand Down
3 changes: 2 additions & 1 deletion test/streamerr.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ module.exports = function (_, dir, finish, gm) {
// The following invocation should fail, because 'convert'
// has no way of interpreting the file.
gm(
svg_file
svg_file,
'./test.svg' // fiction
).options({
imageMagick: true
}).setFormat('png').toBuffer(function(err, buffer) {
Expand Down

0 comments on commit f04ba5e

Please sign in to comment.