Skip to content

Ability to resize remote images #16

@sudokai

Description

@sudokai

Add the ability to resize remote images by specifying the remote url as the last parameter of the url:

/300x400/crop/s/{remoteUrl}

remoteUrl should be a full remote url: https://example.com/example.jpg

Given the example above, the original image should be cached locally as {originalCacheDir}/example.com/example.jpg and the thumbnail as {thumbnailCacheDir}/300x400/crop/s/example.com/example.jpg.

Expose a configuration property to enable remote image resizing.

Check net/http and api/routes.go to get started.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions