Skip to content

Commit 0471ce4

Browse files
committed
remove access="seq"
not needed with tiled tiff input, and it's slower
1 parent 61e6506 commit 0471ce4

File tree

8 files changed

+44610
-7
lines changed

8 files changed

+44610
-7
lines changed

lua-vips.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
vips = require("vips")
44

5-
image = vips.Image.new_from_file(arg[1], {access = "sequential"})
5+
image = vips.Image.new_from_file(arg[1])
66

77
image = image:crop(100, 100, image:width() - 200, image:height() - 200)
88

vips-gegl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import sys
77
import pyvips
88

9-
im = pyvips.Image.new_from_file(sys.argv[1], access='sequential')
9+
im = pyvips.Image.new_from_file(sys.argv[1])
1010

1111
im = im.bandjoin(255)
1212
im = im.colourspace('scrgb')

vips-profile.svg

+43,867
Loading

vips-profile.txt

+737
Large diffs are not rendered by default.

vips.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ main( int argc, char **argv )
1515
global = vips_image_new();
1616
t = (VipsImage **) vips_object_local_array( VIPS_OBJECT( global ), 5 );
1717

18-
if( !(t[0] = vips_image_new_from_file( argv[1],
19-
"access", VIPS_ACCESS_SEQUENTIAL, NULL )) )
18+
if( !(t[0] = vips_image_new_from_file( argv[1], NULL )) )
2019
vips_error_exit( NULL );
2120

2221
t[1] = vips_image_new_matrixv( 3, 3,

vips.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var vips = require('../node-vips');
44

5-
image = vips.Image.newFromFile(process.argv[2], {access: 'sequential'});
5+
image = vips.Image.newFromFile(process.argv[2]);
66

77
image = image.crop(100, 100, image.width - 200, image.height - 200);
88

vips.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use Jcupitt\Vips;
77

8-
$im = Vips\Image::newFromFile($argv[1], ["access" => "sequential"]);
8+
$im = Vips\Image::newFromFile($argv[1]);
99

1010
$im = $im->crop(100, 100, $im->width - 200, $im->height - 200);
1111

vips.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44
import pyvips
55

6-
im = pyvips.Image.new_from_file(sys.argv[1], access='sequential')
6+
im = pyvips.Image.new_from_file(sys.argv[1])
77

88
im = im.crop(100, 100, im.width - 200, im.height - 200)
99
im = im.reduce(1.0 / 0.9, 1.0 / 0.9, kernel='linear')

0 commit comments

Comments
 (0)