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.

Autocompression of images not working on Windows

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Comments:32 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
peterbecommented, Feb 8, 2021

@peterbe I understand your frustration. Could you keep polite here? (Or take this dicussion off-thread by using e-mail). It feels toxic to readers of these issues.

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.

1reaction
nschonnicommented, Feb 2, 2021

You can edit the package.config locally in the content repo https://github.com/mdn/content/blob/6e21cfdfbac220b6d601ff92a274aaab3957a652/package.json#L12 to

"filecheck": "env-cmd --silent cross-env CONTENT_ROOT=files node node_modules/@mdn/yari/filecheck/cli.js",
Read more comments on GitHub >

github_iconTop 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 >

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