You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Take the file path, create the hash with height and width
Check if the path (/path-to-file#hash) exists on CDN
If it exists, do a 301 redirect
If doesnt, generate the image file using ffmpeg and upload it to CDN, and return the file.
The text was updated successfully, but these errors were encountered:
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
/path-to-file#hash
) exists on CDNffmpeg
and upload it to CDN, and return the file.The text was updated successfully, but these errors were encountered: