question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] name of resized image is missing original image name if there was no file type extension

See original GitHub issue

[READ] Step 1: Are you in the right place?

Yes

[REQUIRED] Step 2: Describe your configuration

  • Extension name: _ (storage-resize-images)
  • Configuration values (redact info where appropriate): -Size:64x64 -Cloud Storage Path: empty

[REQUIRED] Step 3: Describe the problem

I just added storage-resize-images extension to my firebase project, it is working as expected when i upload an image manually from the firebase console, but the problem is that whenever i use

storageRef.putString()

function to upload base64 url encoded image to the firebase storage cloud, the compressed image will be created but its name is only _64x64 (not original_64x64).

Obviously i am resizing images as 64x64.

Since the created file doesn’t contain a unique name it is unaccessible for me dynamically…Is there something am i missing?

Steps to reproduce:

Install storage-resize-images extension to my firebase project.(web)

Expected result

storage-resize-images extension to create an image file using the “original.jpeg” image as “original_64x64.jpeg”

Actual result

The extension generated the image as expected but the naming was wrong, it is _64x64.jpeg instead of original_64x64.jpeg

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
christophe-gcommented, Dec 12, 2019

Still experiencing this when an uploaded file does not have an extension.

I am aware that I can check whether filename has an extension before uploading, but IMO the resize image extension should be able to handle case without file extension.

Can this be re-opened ?

image

1reaction
laurenzlongcommented, Dec 17, 2019

Actually I see it’s fixed in https://github.com/firebase/extensions/pull/134 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Sharp image library rotates image when resizing?
The problem actually turned out to be this: when you resize an image, the exif data is lost. The exif data includes the...
Read more >
Find missing image on drive without knowing the name or ...
Is there a program or way for me to scan my drive to find all images based on the content-type of the files...
Read more >
How to Fix Image Upload Issue in WordPress (Step by Step)
Now right click on the uploads directory and then select File Permissions. This will bring up the file permissions dialog box. First, you...
Read more >
How to fix common image-related problems in signatures
Find out how to troubleshoot common image-related problems in signatures that occur due to specific behavior of web-mails, desktop clients ...
Read more >
<img>: The Image Embed element - HTML - MDN Web Docs
When an alt attribute is not present on an image, some screen readers may announce the image's file name instead. This can be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found