All images made on Windows have size 0
See original GitHub issueI use this snippets
return jimp.read(srcFileName)
.then( img => {
img
.resize(width, jimp.AUTO)
.quality(75) // set JPEG quality
.write(destFileName);
returnObj.fname = destFileName;
console.log("Created new image:", srcFileName);
return resolve(returnObj);
})
.catch (err => reject(err) );
the files are being created but have size 0 bytes in Win 10. All working on Ubuntu though. What could be wrong?
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Tiny pictures in file explorer - Microsoft Community
I have tried altering view settings, increasing the overall size of text/apps, etc, I have tried going into regedit, all have zero effect....
Read more >Quickest Way To Reduce Image File Size In Windows 10 ...
This quick way of changing the file size of an image only takes three clicks and will help make the image size small...
Read more >How to Resize Images with the Windows 10 Photos App
In this video, I will show how to resize images for web or email so that the file size is smaller just with...
Read more >How to Resize Images on Windows 10 [Tutorial] - YouTube
How to Resize a Photo on your Mac laptop or Computer · How To Reduce Image Size Using MS Paint In Windows 10...
Read more >Formatting your images for display on the web
Tips for styling images to display clearly on any screen size. ... Images added to galleries display best if all images have a...
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
Can’t reproduce on Windows 7 using the following test script:
Does it still present on Windows 10?
I found an interesting situation. If I use image.write(“filename.jpg”) from within an async function which is called from a Promise, then it doesn’t complete until the top-level Promise is completed, even if I use await.
The fix is to use the Async version every time it is being called from within any async process: image.writeAsync(“filename.jpg”); I think I’ll probably only use writeAsync going forward. The other one was creating strange problems, when used within async and Promises.