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 image size #66

Open
sglkc opened this issue Mar 12, 2023 · 3 comments
Open

Reduce image size #66

sglkc opened this issue Mar 12, 2023 · 3 comments

Comments

@sglkc
Copy link
Contributor

sglkc commented Mar 12, 2023

Is your feature request related to a problem? Please describe.
As mentioned in #65, images are all in full resolution of over 1k pixels and averaging ~3MB, loading them are painfully slow and consumes a lot of bandwidth.

Describe the solution you'd like
Crop with the recommended 2:1 aspect ratio (eg: 1200 x 600 pixels).

Describe alternatives you've considered
Resize and compress every challenge images.

Additional context
I found that the images serve no purpose other than as thumbnails in the landing page, the challenge page uses Figma for the preview anyway.

This would also help future contributors by reducing the repository size (yay)

@nauvalazhar
Copy link
Owner

Hi, thank you for opening this issue. Yeah, that's the issue I have encountered since day 1. Do you have any technical advice to resize and compress all the images?

@sglkc
Copy link
Contributor Author

sglkc commented Mar 13, 2023

You can use Imgbot just to compress them, but I think it won't affect by much. Cropping images to a specific aspect ratio has to be done manually I'm afraid, since CI/CD isn't my thing either.

@nauvalazhar
Copy link
Owner

Okay, thanks for the input! I will try to figure it out.

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

No branches or pull requests

2 participants