Wrong downloaded image file extension
See original GitHub issueReproduction 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:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
Sir, I want to work on this issue.