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

Use Image Transformation on secure assets? #9

Open
CAIDcreative opened this issue Mar 9, 2021 · 3 comments
Open

Use Image Transformation on secure assets? #9

CAIDcreative opened this issue Mar 9, 2021 · 3 comments
Labels
feature request New feature or request

Comments

@CAIDcreative
Copy link

Hi,

Question, is it possible to use craft's image transform with this plugin? I'm hoping to have image displayed inline be secure behind user login, but I can't figure out if it's possible to use this alongside craft's image transformation. Not sure if this is possible or could be added as a feature.

Thanks.

@lindseydiloreto
Copy link
Contributor

Hi there,

That is a fascinating question. Technically speaking, Digital Download doesn't give any special treatment to image files (as opposed to PDFs or other filetypes). It is completely filetype agnostic.

Are you just trying to ensure that the downloaded images are restricted to specific dimensions?

@CAIDcreative
Copy link
Author

Sorry if this is a weird one,

The images are uploaded by end users on the front-end but also need to be secure. It's difficult to style or implement lazy-loading without craft's asset transform as they could be any dimension. Ideally if there was an option in the twig function where I could pass in the image transform I could style thumbnails with the function once, and link to it with different parameters.

@lindseydiloreto
Copy link
Contributor

I don't think this is currently possible, sorry.

It's an interesting idea though, we'll keep this thread open as a feature request! 👍

@lindseydiloreto lindseydiloreto added the feature request New feature or request label Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants