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

Reduce the resolution of showcase pictures by 50%. #880

Merged
merged 1 commit into from Oct 21, 2021

Conversation

almet
Copy link
Member

@almet almet commented Oct 20, 2021

Done with mogrify -resize 50% ihatemoney/static/showcase/*.jpg.

Before :

du -hsc ihatemoney/static/showcase/?.jpg
576K	ihatemoney/static/showcase/1.jpg
512K	ihatemoney/static/showcase/2.jpg
424K	ihatemoney/static/showcase/3.jpg
464K	ihatemoney/static/showcase/4.jpg
464K	ihatemoney/static/showcase/5.jpg
712K	ihatemoney/static/showcase/6.jpg
492K	ihatemoney/static/showcase/7.jpg
592K	ihatemoney/static/showcase/8.jpg
788K	ihatemoney/static/showcase/9.jpg
5.0M	total

After :

268K	ihatemoney/static/showcase/1.jpg
216K	ihatemoney/static/showcase/2.jpg
196K	ihatemoney/static/showcase/3.jpg
196K	ihatemoney/static/showcase/4.jpg
212K	ihatemoney/static/showcase/5.jpg
312K	ihatemoney/static/showcase/6.jpg
232K	ihatemoney/static/showcase/7.jpg
248K	ihatemoney/static/showcase/8.jpg
340K	ihatemoney/static/showcase/9.jpg
2,2M	total

Fixes #875

@zorun
Copy link
Collaborator

zorun commented Oct 20, 2021

Did you run mozjpeg as in #611 ? Also, you can set the JPEG quality to 75 to compress a bit more (I don't known the default for mogrify).

Done with `mogrify -quality 75% -resize 50% ihatemoney/static/showcase/*.jpg`.

Before :
```
du -hsc ihatemoney/static/showcase/?.jpg
576K	ihatemoney/static/showcase/1.jpg
512K	ihatemoney/static/showcase/2.jpg
424K	ihatemoney/static/showcase/3.jpg
464K	ihatemoney/static/showcase/4.jpg
464K	ihatemoney/static/showcase/5.jpg
712K	ihatemoney/static/showcase/6.jpg
492K	ihatemoney/static/showcase/7.jpg
592K	ihatemoney/static/showcase/8.jpg
788K	ihatemoney/static/showcase/9.jpg
5.0M	total
```

After :
```
184K	ihatemoney/static/showcase/1.jpg
140K	ihatemoney/static/showcase/2.jpg
136K	ihatemoney/static/showcase/3.jpg
132K	ihatemoney/static/showcase/4.jpg
144K	ihatemoney/static/showcase/5.jpg
208K	ihatemoney/static/showcase/6.jpg
160K	ihatemoney/static/showcase/7.jpg
164K	ihatemoney/static/showcase/8.jpg
224K	ihatemoney/static/showcase/9.jpg
1,5M	total
```

Fixes #875
@almet almet force-pushed the almet/resize-showcase-images branch from c5523a3 to a44c45f Compare October 20, 2021 21:30
@almet
Copy link
Member Author

almet commented Oct 20, 2021

It doesn't seem to be better after using mozjpg, quite the opposite unfortunately.

du -hsc ihatemoney/static/showcase/?.jpg
288K	ihatemoney/static/showcase/1.jpg
232K	ihatemoney/static/showcase/2.jpg
212K	ihatemoney/static/showcase/3.jpg
212K	ihatemoney/static/showcase/4.jpg
228K	ihatemoney/static/showcase/5.jpg
336K	ihatemoney/static/showcase/6.jpg
248K	ihatemoney/static/showcase/7.jpg
264K	ihatemoney/static/showcase/8.jpg
360K	ihatemoney/static/showcase/9.jpg
2,4M	total

But reducing the quality worked quite well 👍

1,5M    total

@zorun zorun merged commit d1297c9 into master Oct 21, 2021
@zorun
Copy link
Collaborator

zorun commented Oct 21, 2021

Thanks!

@zorun zorun deleted the almet/resize-showcase-images branch October 21, 2021 07:34
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

Successfully merging this pull request may close these issues.

Reduce the size of showcase images
2 participants