Skip to content

Commit ee01a68

Browse files
author
Irene Alvarado
committed
Merge branch 'image-processing' into main
2 parents 02977ac + 87901ac commit ee01a68

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/csv/csv-example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Column, DataItem, stringify } from 'https://deno.land/[email protected]/encoding/csv.ts';
2-
import { readCSV, writeCSV } from 'https://deno.land/x/[email protected].2/mod.ts'
2+
import { readCSV, writeCSV } from 'https://deno.land/x/[email protected].3/mod.ts'
33

44
// Path to a csv file
55
const csvPath = './examples/csv/prices.csv';

examples/image/image-example.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { loadImage, loadImageBytes } from '../../image.ts'
1+
import { loadImage, loadImageBytes } from 'https://deno.land/x/[email protected]/mod.ts'
22
import { Image } from 'https://cdn.deno.land/imagescript/versions/1.2.0/raw/mod.ts'; // library for image manipulations
33

44
const url = 'https://api.creativecommons.engineering/v1/thumbs/c8fe5f5b-cc1a-4794-91c5-7488c60f4914'
@@ -7,13 +7,13 @@ const url3 = 'https://i.giphy.com/media/5wWf7HapUvpOumiXZRK/giphy.gif'
77

88
// Can specify a filename to rename the image
99
// (image url, path to save image, image to save name)
10-
loadImage(url, './examples/image/', 'cat')
10+
await loadImage(url, './examples/image/', 'cat')
1111

1212
// Image will be saved with the default name if not included
13-
loadImage(url2, './examples/image/')
13+
await loadImage(url2, './examples/image/')
1414

1515
// Can load gifs, pngs, jpgs
16-
loadImage(url3, './examples/image/', 'cat-gif')
16+
await loadImage(url3, './examples/image/', 'cat-gif')
1717

1818
// Image manipulation example - reading from a file
1919
const bytes = await Deno.readFile('./examples/image/cat.jpeg') // local file

0 commit comments

Comments
 (0)