Closed inghamn closed 10 years ago
I'm still thinking through how this would work.
Let's say we have some rules defined for "Banner". In order to enforce those rules on upload, the user has to tell us one of the files they're uploading is a "Banner". Later on, when we cange the rules for "Banner" we'll need to recheck all the existing files.
Is it really an enforce-on-upload thing? Or is it more of a dynamic display thing? If we're just trying to provide users an easy way to choose an image to place at the top of a page in Drupal, is it enough to just list "Banner" images. We may not need to have users declare that a particular image is a "Banner".
We may just need to have aspect ratio rules defined, such that we can search for media that matches the ruleset.
Now, it may be that some image that a user thinks should be a "Banner" may not match the rules, and thus not be included. So they wouldn't be finding that image listed with all the other "Banners".
There is only one place we need to enforce the aspect ratio: it's in Drupal, when the image is assigned to a node.
All the rest of the time, we just need to be able to search for images that match the rules.
Anything we want to use for a rule has to be added to the search index. We should start with aspect ratio, width, and hieght, and see if that can cover all the possibilities.
On the content manager we have need for images to be certain predefined apect ratios. Banners need to be long and narrow, logos need to be square, featured images need to be 2x1, stuff like that.
When employees are looking for an image in the media manager, they are going to have a certain usage (from the content manager) in mind. We need to have media categorized by these aspect ratios in the media manager.
That way, employees can filter by "banner" images and get stuff that's already sized to work.