Skip to content

Commit ab0942a

Browse files
committed
pub img warning size 100kb
1 parent 95ecddf commit ab0942a

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

QUICKSTART.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

_templates/member-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

scripts/optimize_images.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 ' ')

0 commit comments

Comments
 (0)