-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
(feat) implements image thumbnails for the File type #4509
Conversation
👍 looks very clean, maybe @jossmac can merge? |
Upon merge, probably best to close the following; There might be other related issues and PR's too. |
Looking at this further, it might make more sense to have the showThumb property on the field itself, rather than defining it on the adapter. That way you can have multiple image fields in one model - and only show the thumb where wanted. I'll take a quick gander and see if I can implement that.. |
Might want to have another quick look. Instead of defining the showThumb property on setup of the Storage adapter, you now set it per field. This makes more sense because a) it doesn't save it to the database now and b) you can set it per field.
|
Is this, or any other PR going to be looked at soon? It's quite disconcerting to have no movement on any of our PR's or Issues over this length of time - especially given the investment thus far into the project. |
@cadriel looks good mate |
Will need @Noviny or @JedWatson to release |
allright! so glad that this made it in. is this feature documented somewhere? |
No docs; But - as per example above, its easy to apply;
This isn't currently smart enough to use a thumbnail image, or set dimensions. It'll just do its best to present the original file in keystone. |
@cadriel |
Implements an image thumbnail for type
File
. Depends on a new schema property calledshowThumb
. This improves upon the existing PR's in place that have stalled.CSS has been implemented to ensure larger format images don't break layout.
Intent is to keep this simple for now until more complex solutions re: image middleware are sorted.
Master currently has e2e and unit tests failing from a prior merge. Can these be resolved so I can rebase?
@JedWatson