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

Optimise images when they are uploaded and save in webp format #177

Merged
merged 2 commits into from
Nov 20, 2024

Commits on Nov 19, 2024

  1. Optimise images when they are uploaded and save in webp format

    - backend
      - open uploaded images using pillow
      - resize if width > 1024
      - export to webp format using pywebp
      - add some png & jpeg files to the tests
    - frontend-admin
      - allow png uploads as well as jpg
    - frontend
      - update image urls
    - resolves #166
    lkeegan committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    a09ab61 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2024

  1. set media_type to image/webp for get_child_image FileResponse

    - automatically inferred type caused `Failed to execute 'createObjectURL' on 'URL': Overload resolution failed.` runtime error in frontend
    lkeegan committed Nov 20, 2024
    Configuration menu
    Copy the full SHA
    8e56030 View commit details
    Browse the repository at this point in the history