Autocompression of images not working on Windows
See original GitHub issueWhen I try to compress images on Windows I get an error. The test case is this branch https://github.com/hamishwillee/content/tree/backup_devtools_badcomp and the file: files/en-us/tools/page_inspector/how_to/examine_and_edit_css/show_pseudo_classes_hover.png
Note, this same branch compresses fine on Ubuntu 20.04.
Error as shown below.
D:\github\mozilla\mdn_content\content>yarn filecheck "files/en-us/tools/page_inspector/how_to/examine_and_edit_css/show_pseudo_classes_hover.png" --save-compression
yarn run v1.22.5
$ env-cmd --silent cross-env CONTENT_ROOT=files node node_modules/@mdn/yari/filecheck/cli.js --cwd=$(pwd) files/en-us/tools/page_inspector/how_to/examine_and_edit_css/show_pseudo_classes_hover.png --save-compression
files/en-us/tools/page_inspector/how_to/examine_and_edit_css/show_pseudo_classes_hover.png was unexpected at this time.
D:\github\mozilla\mdn_content\content> "D:\github\mozilla\mdn_content\content\node_modules\.bin\\node.exe" "D:\github\mozilla\mdn_content\content\node_modules\.bin\\..\env-cmd\bin\env-cmd.js" --silent cross-env CONTENT_ROOT=files node node_modules/@mdn/yari/filecheck/cli.js --cwd=$(pwd) files/en-us/tools/page_inspector/how_to/examine_and_edit_css/show_pseudo_classes_hover.png --save-compression
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
More information on what was tried in https://github.com/mdn/content/pull/1338#issuecomment-761906015
Issue Analytics
- State:
- Created 3 years ago
- Comments:32 (18 by maintainers)
Top Results From Across the Web
Auto compression win10 broke my photos and videos HELP
Hello everyone I got a problem. My windows 10 started compressing files automatically. And after compression files size show insane and it's ...
Read more >Turn off picture compression - Microsoft Support
Turn off compression in Word, PowerPoint, or Excel. Click File > Options. In the Options box, click Advanced. In the list at Image...
Read more >Email image attachment auto-compression
Hi All I have a flow that saves images (.png) attachment from emails received to a sharepoint folder. The issue is that flow...
Read more >Windows 7 desktop background bmp auto compression issue!
I have an issue with Windows 7 and its totally automatic desktop background image compression feature! The problem is that I have several ......
Read more >Windows 10 compressed files take up all the free space
I have a great problem with my wife's laptop – I am facing the dreaded “Windows 10 Auto compression of files to save...
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
Sure. Thanks for reminding me. If you can, when you see comments that are distracting and off-tangent, help out to remind to keep the discussion focussed.
You can edit the package.config locally in the content repo https://github.com/mdn/content/blob/6e21cfdfbac220b6d601ff92a274aaab3957a652/package.json#L12 to