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

Same folder as original image #39

Open
AlexisWalravens opened this issue Aug 2, 2018 · 3 comments
Open

Same folder as original image #39

AlexisWalravens opened this issue Aug 2, 2018 · 3 comments

Comments

@AlexisWalravens
Copy link

Hi,
Would it be possible to save the newly created thumb to the same folder as the original image ?
And while I'm here, I have another question:
How to delete the thumb when I delete the original image from for example an attachOneor attachMany relationship ?

Regards,
Alexis

@paishin
Copy link

paishin commented Jun 3, 2019

I also need to delete thumbs when I delete the original image, any help would be much appreciated.
+1 saving to same folder!

@matteotrubini
Copy link
Collaborator

  1. The same folder cannot be used everytime, ex: theme assets.

  2. Actually you cannot delete a single thumb generated by this plugin, you can only clear the cache at all.

If anyone would like to contribute with a deleteThumbs() method can take inspiration by the same in https://github.com/octobercms/library/blob/master/src/Database/Attach/File.php

@matteotrubini
Copy link
Collaborator

This plugin is being migrated to core (see #55), so we are trying to figure out what issues are still relevant to invite to reopen them in core.

Issues that will remain inactive in next 30 days will be closed.

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

3 participants