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.

Wrong downloaded image file extension

See original GitHub issue

Reproduction Steps Taken from demo.py script:

    viz.images(
        np.random.randn(20, 3, 64, 64),
        opts=dict(title='Random images', caption='How random.')
    )

Navigate to locahost:8097 “main” env, download the image by clicking on the download button. The downloaded file has a “.jpg” extension and cannot be opened - it must have a “.png” extension.

Expected behavior “Random images.png” is downloaded.

Additional context I thought the issue is in https://github.com/facebookresearch/visdom/blob/master/js/ImagePane.js#L87; I changed it to have a png suffix but it does not resolve the issue.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dizczacommented, Jan 27, 2021

@rajdesai24 please read the issue description once again. Do I define a jpgquality in the test script? - No. —> “If not defined, the image will be saved as a PNG” - this is the expected behavior. But instead, I get an image with a JPG extension that cannot be opened by any JPG readers because it is NOT a JPG.

1reaction
kashyaprajharshcommented, Jan 22, 2021

Sir, I want to work on this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internet images saving with wrong file extension, ex
When i try to save an internet image, it no longer saves in it's original format such as a jpeg or png but...
Read more >
A Guide to Fix 20 common JPEG or JPG Problems
Often incomplete download also leads to the JPEG error, so try downloading the pictures again and save the file with correct extension.
Read more >
Top 5 JPEG File Errors and Ways to Fix Them
Solutions · Check the original source file extension · Change the image file extension to .jpeg again using the Save As option or...
Read more >
9 Methods to Fix JPEG Invalid Image Error Message Easily
Solution 1: Download JPG File Again · Solution 2: Rename A JPG File · Solution 3: Convert The JPEG File Extension To Different...
Read more >
Incorrect image file extension detection
Irfanview detects that the image file extension is incorrect and asks if you want to correct it while telling you what the actual...
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