You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2nd-gen/thumbnails/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ This sample automatically generates thumbnails for images that are uploaded to C
11
11
12
12
See file [functions/index.js](functions/index.js) for the thumbnail generation code.
13
13
14
-
The thumbnail generation is performed using ImageMagick which is installed by default on all Cloud Functions instances. This is a CLI so we execute the command from node using the [child-process-promise](https://www.npmjs.com/package/child-process-promise) package. The image is first downloaded locally from the Cloud Storage bucket to the `tmp` folder using the [google-cloud](https://github.com/GoogleCloudPlatform/google-cloud-node) SDK.
14
+
The thumbnail generation is performed using [sharp](https://www.npmjs.com/package/sharp).
15
15
16
16
The dependencies are listed in [functions/package.json](functions/package.json).
Copy file name to clipboardExpand all lines: README.md
-5Lines changed: 0 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,11 +124,6 @@ Uses an HTTP trigger.
124
124
Demonstrates how to automatically convert images that are uploaded to Firebase Storage to JPEG using ImageMagick.
125
125
Uses a Firebase Storage trigger.
126
126
127
-
### [Generate image thumbnails using ImageMagick](/generate-thumbnail)
128
-
129
-
Demonstrates how to automatically generate a thumbnail for images that are uploaded to Firebase Storage using ImageMagick and generate a public download link for the images.
130
-
Uses a Firebase Storage trigger.
131
-
132
127
### [Generate image thumbnails using Node.js Stream & Sharp](/image-sharp)
133
128
134
129
Demonstrates how to use Node.js Stream to read image from Cloud Storage, generate a thumbnail image using Sharp and upload it back to Cloud Storage.
0 commit comments