Skip to content

Commit b9279e4

Browse files
committed
update more camelCase
1 parent 10023b0 commit b9279e4

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ For example:
6767

6868
```
6969
$image->writeToFile("fred.jpg", ["Q" => 90]);
70-
$image = $image->embed("fred.jpg", ["Q" => 90]);
7170
```
7271

7372
There are around 300 operations in the library, see the vips docs for an
@@ -158,15 +157,15 @@ Try:
158157
```php
159158
#!/usr/bin/env php
160159
<?php
161-
include 'vips.php';
160+
include 'vips.php';
162161

163-
$image = Vips\Image::new_from_file($argv[1]);
162+
$image = Vips\Image::newFromFile($argv[1]);
164163

165-
echo "width = ", $image->width, "\n";
164+
echo "width = ", $image->width, "\n";
166165

167-
$image = $image->invert();
166+
$image = $image->invert();
168167

169-
$image->write_to_file($argv[2]);
168+
$image->writeToFile($argv[2]);
170169
?>
171170
```
172171

examples/vips_addconst.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<?php
33
include '../vips.php';
44

5-
$image = Vips\Image::new_from_array([[1, 2, 3], [4, 5, 6]]);
5+
$image = Vips\Image::newFromArray([[1, 2, 3], [4, 5, 6]]);
66
$image = $image->linear(1, 1);
77
?>

examples/vips_bench.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33

44
include '../vips.php';
55

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

88
$im = $im->crop(100, 100, $im->width - 200, $im->height - 200);
99

1010
$im = $im->reduce(1.0 / 0.9, 1.0 / 0.9, ["kernel" => "linear"]);
1111

12-
$mask = Vips\Image::new_from_array(
12+
$mask = Vips\Image::newFromArray(
1313
[[-1, -1, -1],
1414
[-1, 16, -1],
1515
[-1, -1, -1]], 8);
1616
$im = $im->conv($mask);
1717

18-
$im->write_to_file($argv[2]);
18+
$im->writeToFile($argv[2]);
1919

2020
?>

examples/vips_class.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<?php
33
include '../vips.php';
44

5-
$image = Vips\Image::new_from_file($argv[1]);
5+
$image = Vips\Image::newFromFile($argv[1]);
66

77
echo "width = ", $image->width, "\n";
88

99
$image = $image->invert();
1010

11-
$image->write_to_file($argv[2]);
11+
$image->writeToFile($argv[2]);
1212
?>

0 commit comments

Comments
 (0)