Opened 5 years ago
Last modified 16 months ago
#48703 assigned task (blessed)
Update compressed images for a clean precommit:image output
Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
Previously:
- #48206 (5.3)
Background: #48203
grunt-contrib-imagemin
was updated in [46404] and some GIF images were re-minified, however I still get a bunch of changed files after running grunt imagemin
:
src/wp-admin/images/loading.gif src/wp-admin/images/media-button-image.gif src/wp-admin/images/media-button-video.gif src/wp-admin/images/resize-2x.gif src/wp-admin/images/resize-rtl-2x.gif src/wp-admin/images/resize-rtl.gif src/wp-admin/images/resize.gif src/wp-admin/images/sort-2x.gif src/wp-admin/images/spinner-2x.gif src/wp-admin/images/spinner.gif src/wp-admin/images/wpspin_light-2x.gif src/wp-admin/images/wpspin_light.gif src/wp-includes/images/smilies/icon_cry.gif src/wp-includes/images/smilies/icon_lol.gif src/wp-includes/images/smilies/icon_redface.gif src/wp-includes/images/spinner-2x.gif src/wp-includes/images/spinner.gif src/wp-includes/images/wpspin-2x.gif src/wp-includes/images/wpspin.gif
Per a quick check in Slack, this is the case for other committers as well, so it seems like the files should be updated.
Attachments (1)
Change History (30)
This ticket was mentioned in Slack in #core-committers by sergey. View the logs.
5 years ago
#3
@
5 years ago
I can't seem to get this script to settle. It wants to keep pulling a few more bytes out each time you run the script.
This seems a little suboptimal...
#4
@
5 years ago
It gets weirder :)
- The initial list from the ticket description is what I get after running the
precommit:image
task on Windows 10. - Despite SVN reporting binary file differences, there are actually no differences when comparing the file contents.
- The only actual difference for me is
src/wp-admin/images/loading.gif
, which keeps changing size between 1373 and 1369 bytes. - At one point I also got differences in
src/wp-includes/images/smilies/icon_redface.gif
changing between 645 and 641 bytes, but it's not as consistent asloading.gif
. This is still on Windows 10. - When running
npm run grunt precommit:image
on a Git checkout on Ubuntu 18.04 LTS, this is the list I get:src/wp-admin/images/loading.gif src/wp-admin/images/media-button-image.gif src/wp-admin/images/media-button-video.gif src/wp-admin/images/wpspin_light-2x.gif src/wp-admin/images/wpspin_light.gif src/wp-includes/images/smilies/icon_redface.gif src/wp-includes/images/wpspin-2x.gif src/wp-includes/images/wpspin.gif
Again, no actual differences in file contents, just Git reporting binary file changes.
#5
@
5 years ago
- Milestone changed from 5.4 to Future Release
- Summary changed from Update compressed images for 5.4 to Update compressed images
This is still relevant, but it's still not quite clear to me what causes SVN to report binary file differences if there are no actual differences when comparing the file contents.
Since it doesn't affect the build in a significant way, moving to a future release for further investigation.
This ticket was mentioned in Slack in #core by sergey. View the logs.
5 years ago
#7
@
5 years ago
- Description modified (diff)
- Milestone changed from Future Release to 5.5
- Summary changed from Update compressed images to Update compressed images for 5.5
This ticket was mentioned in Slack in #core by sergey. View the logs.
5 years ago
This ticket was mentioned in Slack in #core by whyisjake. View the logs.
4 years ago
#13
@
4 years ago
I don't love how this isn't a guaranteed fix. Thinking we should close this out, and maybe look at another solution.
#14
@
4 years ago
- Milestone 5.5 deleted
- Resolution set to maybelater
- Status changed from accepted to closed
- Summary changed from Update compressed images for 5.5 to Update compressed images for a clean precommit:image output
This ticket was mentioned in Slack in #core by sergey. View the logs.
4 years ago
This ticket was mentioned in Slack in #core by sergey. View the logs.
3 years ago
This ticket was mentioned in Slack in #core-committers by sergey. View the logs.
3 years ago
#18
@
3 years ago
- Milestone set to 6.0
- Resolution maybelater deleted
- Status changed from closed to reopened
After running npm run grunt precommit:image
on trunk or the 5.9 branch, I still get the list of GIF files from the ticket description without any real size difference, but also a couple of legitimate changes:
src/wp-admin/images/about-texture.png: 143 KB (146755 bytes) → 100 KB (102792 bytes) src/wp-includes/images/w-logo-blue-white-bg.png: 4,02 KB (4119 bytes) → 3,99 KB (4094 bytes)
Let's commit these two for 6.0, and then see if the GIF file changes are stable enough now to commit as well.
This ticket was mentioned in Slack in #core by sergey. View the logs.
3 years ago
This ticket was mentioned in Slack in #core by mike. View the logs.
3 years ago
#21
@
3 years ago
- Owner changed from whyisjake to SergeyBiryukov
- Status changed from reopened to assigned
@SergeyBiryukov Assigning this to you as you mentioned you were getting some significant enough savings for some images that you thought it warranted a commit.
This ticket was mentioned in Slack in #core by chaion07. View the logs.
3 years ago
#24
@
3 years ago
- Milestone changed from 6.0 to 6.1
With 6.0 RC1 starting soon, I'm moving this to the 6.1 milestone.
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
2 years ago
#26
@
2 years ago
- Milestone changed from 6.1 to Future Release
Unfortunately, this ticket didn’t get more momentum in 6.1 than in 6.0… sorry about that, but the proposed patch still needs testing, so let's move it to Future Release
milestone, at least until it's properly reviewed and tested.
I was going to commit, but my list is different @SergeyBiryukov.