Skip to content

Issue when using with express #3

@Loyz07

Description

@Loyz07

Hello kriasoft,

First thanks for your job. Very helpful !

I try to use this package within an express server but i face an issue. When i try to display the original image all works fine but when i add a manipulation prefix (for instance w_50), the cache image is generated in the cache bucket but empty 😳.

If i use the createHandler directly in a cloud function all works very well !

Could you help ?
Thanks.

Here a sample of my code

`
const express = require('express');
const { createHandler } = require('image-resizing');

const app = express();
const port = 3000;

app.get(
'/*',
createHandler({
sourceBucket: 'gs:///assets',
cacheBucket: 'gs:///cache',
})
);

app.listen(port, () => {
console.log(Example app listening at http://localhost:${port});
});
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions