firebase / firebase/functions-samples

generateThumbnail produces toxic image

Closed
#652 6 comments 3 reactions 1 assignee Claimed by @jhuleatt View on GitHub
type: bug
Dominant language
JavaScript
Stars
12.2k
Forks
3.8k
Avg merge
1d 23h
Merged PRs (30d)
2

Description

### How to reproduce these conditions

I'm using the sample code as is: It builds and uploads and runs.
The thumb_ image can't be downloaded and just 'hangs' in the control panel.
I've tried .jpg and .png, small and large. All produce the same failure.
Logs say it ran 'ok'. About 6 seconds for a 1 meg image.

Running latest software:

```
"engines": {
"node": "10"
},
"dependencies": {
"child-process-promise": "^2.2.1",
"firebase-admin": "^8.6.0",
"firebase-functions": "^3.3.0"
}
```

firebase-tools are current.

Here is what the console looks like after an upload. The original image uploads fine.
The generated thumb never presents an image or a link (though its name and size are correct)

![Screen Shot 2019-12-27 at 4 27 20 PM](https://user-images.githubusercontent.com/1890188/71536822-73d30180-28c8-11ea-9cae-cbd9b40d051d.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.