Skip to content

Optimized Image CDN #80

@abskrj

Description

@abskrj

Describe the solution you'd like
Create an endpoint which takes a file path, width and height and returns a file in that dimension.
The URL should look like

/api/v1/image/path-to-file?h=100&w=100

Approach

  1. Take the file path, create the hash with height and width
  2. Check if the path (/path-to-file#hash) exists on CDN
  3. If it exists, do a 301 redirect
  4. If doesnt, generate the image file using ffmpeg and upload it to CDN, and return the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions