[GH-ISSUE #222] Compress all images in size to make PDF / ePub smaller and website faster #1321

Closed
opened 2026-04-11 07:42:53 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @profvjreddi on GitHub (May 26, 2024).
Original GitHub issue: https://github.com/harvard-edge/cs249r_book/issues/222

The images are all very large at this time, which is causing issues with GitHub and publishing the pages. I end up with these errors quite often when I am about to publish.

origin	https://github.com/harvard-edge/cs249r_book.git (fetch)
origin	https://github.com/harvard-edge/cs249r_book.git (push)
remote: error: Trace: f9e0bc3814baad3bf7109a9a554b191e41ce51694977b501f2b525e036c411de        
remote: error: See https://gh.io/lfs for more information.        
remote: error: File Machine-Learning-Systems.epub is 136.05 MB; this exceeds GitHub's file size limit of 100.00 MB        
remote: error: File Machine-Learning-Systems.pdf is 127.80 MB; this exceeds GitHub's file size limit of 100.00 MB        
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.        
To https://github.com/harvard-edge/cs249r_book.git
 ! [remote rejected] HEAD -> gh-pages (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/harvard-edge/cs249r_book.git'
HUIT-SEAS-MacBook-Pro-2:cs249r_book VJ$ 

So I can either use LFS but that adds another level of complexity. Prefer to just compress the images down using something like ImageOptim.

Originally created by @profvjreddi on GitHub (May 26, 2024). Original GitHub issue: https://github.com/harvard-edge/cs249r_book/issues/222 The images are all very large at this time, which is causing issues with GitHub and publishing the pages. I end up with these errors quite often when I am about to publish. ``` origin https://github.com/harvard-edge/cs249r_book.git (fetch) origin https://github.com/harvard-edge/cs249r_book.git (push) remote: error: Trace: f9e0bc3814baad3bf7109a9a554b191e41ce51694977b501f2b525e036c411de remote: error: See https://gh.io/lfs for more information. remote: error: File Machine-Learning-Systems.epub is 136.05 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: File Machine-Learning-Systems.pdf is 127.80 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. To https://github.com/harvard-edge/cs249r_book.git ! [remote rejected] HEAD -> gh-pages (pre-receive hook declined) error: failed to push some refs to 'https://github.com/harvard-edge/cs249r_book.git' HUIT-SEAS-MacBook-Pro-2:cs249r_book VJ$ ``` So I can either use LFS but that adds another level of complexity. Prefer to just compress the images down using something like ImageOptim.
GiteaMirror added the area: websitearea: tools labels 2026-04-11 07:42:53 -05:00
Author
Owner

@profvjreddi commented on GitHub (Jun 18, 2024):

done. First started off in 456372f022

<!-- gh-comment-id:2174756417 --> @profvjreddi commented on GitHub (Jun 18, 2024): done. First started off in 456372f0228977daa6f595d76d73e2c42de047a4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cs249r_book#1321