Skip to content

Conversation

@Rahulm2310
Copy link
Contributor

@Rahulm2310 Rahulm2310 commented Jan 23, 2021

Fixes #927

Changes:

Added imagemin plugins for jpeg and png image compression. One can learn about it here

Screenshots of the change:

Before Changes :

The images were of large size and were taking a few seconds to load on browser. The imagemin plugin was not compressing the images (refer the screenshot below)
imagemin-before

After Changes :

Added required additional imagemin plugins and now images are compressed and loading quick (refer the screenshot below)
img-min-fix-2

Compression Results
img-min-fix-1

@Rahulm2310
Copy link
Contributor Author

@limzykenneth Hi, can you please review my PR

Copy link
Member

@limzykenneth limzykenneth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one edit suggestion. After that should be ready to merge. We can potentially optimize a bit more by resizing the images but it doesn't need to be done now.

Co-authored-by: Kenneth Lim <[email protected]>
@limzykenneth limzykenneth merged commit 3c7f48c into processing:main Jan 30, 2021
@limzykenneth
Copy link
Member

Looks good. Thanks.

@Rahulm2310
Copy link
Contributor Author

Thanks @limzykenneth 🙂

@Rahulm2310 Rahulm2310 deleted the imagemin-fix branch August 21, 2021 13:25
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.

Enhancement: Optimize Images on community page

2 participants