[storage-resize-images] converting other formats into TIFF.
[READ] Step 1: Are you in the right place?
Yes.
[REQUIRED] Step 2: Describe your configuration
- Extension name: storage-resize-images
- Extension version: 0.1.24
- Configuration values:

[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
- Use my configuration of extension.
- Upload files in jpg, webp or png format.
- Try to download the converted TIFF file thru Cloud Storage link in Firebase Console.
When trying to download converted images from jpg, png, webp to TIFF in the live version of the extension I am actually downloading files in their source file format.
I have tried to debug it as well with the Firebase Emulator. The problem is NOT occurring when I am debugging it locally. Everything works as expected so I can download converted TIFF.

Expected result
When the file (jpg,png,webp) is converted to TIFF you should be able to download this TIFF thru Firebase Storage link in Live Console.
Actual result
When trying to download the converted TIFF file in a live version of Firebase Console in Cloud Storage I am receiving a resized file in its original file format (jpg,png,webp) and filename.

if this works in the emulator potentially its not a Sharp library issue
This issue occurs as the underlying metaData in Firebase storage is not currently updated when resizing the file.
// filename\*=utf-8'' selects any string match the filename notation.
// [^;\s]+ searches any following string until either a space or semi-colon.
const contentDisposition = objectMetadata.contentDisposition.replace(
/(filename\*=utf-8''[^;\s]+)/,
`filename*=utf-8''${modifiedFileName}`
);
// Cloud Storage files.
const metadata: { [key: string]: any } = {
contentDisposition,
contentEncoding: objectMetadata.contentEncoding,
contentLanguage: objectMetadata.contentLanguage,
contentType: imageContentType,
metadata: objectMetadata.metadata || {},
};