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

Allow image styles to be saved to a different scheme to the original image #6433

Open
yorkshire-pudding opened this issue Mar 22, 2024 · 0 comments

Comments

@yorkshire-pudding
Copy link
Member

Description of the need

For photographers and artists, the original image may be part of their intellectual property that should only be available to users of a certain role (e.g. "Subscriber"). They would therefore use the private folder for these original images so they can be protected. However, a thumbnail and/or a watermarked larger image may be available to the public and so could be in the public files where checks aren't needed before delivering them to the browser.

Proposed solution

In the same way that image field can specify a scheme, the image style should allow the scheme to be changed. Ideally, this would be in the UI with a simple set of radio buttons.

Alternatives that have been considered

No modules that do this, partly because there are no hooks to change the scheme.

Drupal have done (and are doing) work in core to allow modules to alter the scheme and path of image styles; see the following issues to see the trail I followed:

Additional information

Draft of feature description for Press Release (1 paragraph at most)

Backdrop now includes the ability to save image styles to public even if the original images are in private and vice versa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant