Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huge screenshots file size savings using oxipng #48

Open
Psyhackological opened this issue Aug 15, 2024 · 1 comment
Open

Huge screenshots file size savings using oxipng #48

Psyhackological opened this issue Aug 15, 2024 · 1 comment

Comments

@Psyhackological
Copy link

The issue

cosmic-screenshot produces large screenshots file sizes.

The solution / inspiration

Maybe cosmic-screenshot can learn a thing or two from oxipng?

Logs

I used oxipng to decrease screenshots size.

oxipng -o 6 --strip safe *.png
Processing: screenshot-2024-08-10-11-26-24.png
Processing: screenshot-2024-08-14-18-13-09.png
Processing: screenshot-2024-08-10-11-39-04.png
Processing: screenshot-2024-08-12-18-18-04.png
Processing: screenshot-2024-08-14-18-13-39.png
Processing: screenshot-2024-08-10-11-39-15.png
Processing: screenshot-2024-08-14-22-34-17.png
Processing: screenshot-2024-08-10-11-39-00.png
Processing: screenshot-2024-08-10-12-01-03.png
Processing: screenshot-2024-08-14-22-34-33.png
Processing: screenshot-2024-08-15-10-01-21.png
Processing: screenshot-2024-08-15-10-00-14.png
Processing: screenshot-2024-08-15-10-00-24.png
Processing: Screenshot from 2024-07-16 16-55-34.png
Processing: screenshot-2024-08-12-18-19-36.png
screenshot-2024-08-12-18-18-04.png: Invalid PNG header detected
Processing: screenshot-2024-08-14-17-51-10.png
Processing: screenshot-2024-08-14-18-13-33.png
Processing: screenshot-2024-08-12-19-57-11.png
Processing: screenshot-2024-08-12-18-19-01.png
Processing: screenshot-2024-08-15-09-57-49.png
193526 bytes (70.86% smaller): screenshot-2024-08-12-18-19-01.png
9320462 bytes (28.97% smaller): screenshot-2024-08-15-10-00-24.png
1050413 bytes (61.78% smaller): screenshot-2024-08-12-19-57-11.png
39258 bytes (69.48% smaller): screenshot-2024-08-14-22-34-17.png
6334815 bytes (33.39% smaller): screenshot-2024-08-10-11-39-15.png
594173 bytes (59.27% smaller): screenshot-2024-08-14-18-13-09.png
978770 bytes (47.09% smaller): screenshot-2024-08-10-12-01-03.png
7799865 bytes (30.36% smaller): screenshot-2024-08-10-11-39-04.png
9409430 bytes (27.85% smaller): screenshot-2024-08-15-10-00-14.png
250548 bytes (63.29% smaller): screenshot-2024-08-14-17-51-10.png
46095 bytes (65.94% smaller): screenshot-2024-08-10-11-39-00.png
193263 bytes (72.54% smaller): screenshot-2024-08-15-10-01-21.png
371259 bytes (30.79% smaller): Screenshot from 2024-07-16 16-55-34.png
607074 bytes (52.83% smaller): screenshot-2024-08-12-18-19-36.png
250853 bytes (63.28% smaller): screenshot-2024-08-14-18-13-33.png
250734 bytes (63.25% smaller): screenshot-2024-08-14-18-13-39.png
75943 bytes (69.00% smaller): screenshot-2024-08-14-22-34-33.png
5822895 bytes (28.43% smaller): screenshot-2024-08-10-11-26-24.png
2159403 bytes (39.33% smaller): screenshot-2024-08-15-09-57-49.png
@Psyhackological
Copy link
Author

I think it's mostly to do with repeated colours. When I screenshot my cosmic settings, there are so few solid colours, but it gets it raw, and I easily get around 2/3 smaller file size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant