File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -175,9 +175,9 @@ bundle exec htmlproofer ./_site --disable-external
175175- Optimize images before uploading
176176- Use descriptive filenames
177177- Keep file sizes small:
178- - Member photos: ~ 50- 100KB
178+ - Member photos: max 100KB
179179 - Publication teasers: max 100KB
180- - Post images: < 500KB
180+ - Post images: max 500KB
181181
182182### Code
183183
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ bundle exec jekyll serve
5858
5959| Type | Size | Format | Max Size |
6060| ------| ------| --------| ----------|
61- | Member Photo | 365×365px, 72 DPI | JPG | ~ 100KB |
61+ | Member Photo | 365×365px, 72 DPI | JPG | 100KB |
6262| Publication Teaser | Max 200px height | JPG | 100KB |
6363| Post Images | Reasonable | JPG/PNG | 500KB |
6464
Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ Copy this template when adding a new member to `_data/members.yml`
2727# # Tips
2828
2929- Use single quotes for multi-line descriptions
30- - Keep file size under 100KB
30+ - Keep file size to max 100KB (optimization script helps with this)
3131- Use consistent naming : lastname.jpg
3232
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ optimize_member_photo() {
5050 size=$( wc -c < " $temp_file " | tr -d ' ' )
5151 size_kb=$(( size / 1024 ))
5252
53- if [ $size_kb -gt 150 ]; then
54- echo -e " ${YELLOW} Warning: ${filename} is ${size_kb} KB (recommended < 100KB)${NC} "
53+ if [ $size_kb -gt 100 ]; then
54+ echo -e " ${YELLOW} Warning: ${filename} is ${size_kb} KB (max 100KB)${NC} "
5555 echo -e " Attempting further compression..."
5656 $CONVERT_CMD " $temp_file " -quality 75 " $temp_file "
5757 size=$( wc -c < " $temp_file " | tr -d ' ' )
You can’t perform that action at this time.
0 commit comments