Closed (won't fix)
Project:
Responsive images and styles
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
2 Aug 2012 at 11:40 UTC
Updated:
9 Oct 2014 at 14:52 UTC
Jump to comment: Most recent
Comments
Comment #1
attiks commentedComment #2
attiks commented+Support inline images
Comment #3
jelle_sI took a look at a possible upgrade path.
We could, for each suffix defined in resp_img 1.x, create a breakpoint with (min-width: $value px) for the media query where $value is the breakpoint that was defined for that suffix.
And then we have some options:
And then there's the mappings... Not sure what to do with the multipliers, what styles to map to which breakpoint etc.
One last issue:
In 1.x one breakpoint (suffix) could have multiple image styles (thumbnail_mobile, large_mobile, ...). But now, within each group, each breakpoint is linked (mapped) to one image style. Which brings me to the fourth option mentioned above:
We could get the default suffix defined in 1.x, load all image styles ending with the default suffix and then create a group for each of those styles.
For example:if you would have the suffixes _mobile, _normal, _highres and the default suffix was '_mobile', then we would load all image styles ending in _mobile (e.g.: thumbnail_mobile, medium_mobile, large_mobile) and then create a group for each image style, resulting in the groups thumbnail, medium and large. Then we can map all breakpoints to the right image style within the right group:
Any thoughts?
Comment #4
attiks commented++ for the last option, but this also means checking all file/image field display settings and changing them accordingly
Comment #5
jelle_sThe mappings now support ctools exportables.
Comment #6
jelle_sI'll have a look at that.
We can get all related field instances like this:
And then update them with
So I think it should be possible ;-)
Comment #7
jelle_sThere now is an upgrade path from 1.x to 2.x following the steps outlined in #3, #4 and #6
To upgrade, follow these steps:
I'll document this on the project page as well.
Comment #7.0
jelle_sUpdated issue summary.
Comment #8
attiks commentedGreat, for the moment 2.x is missing some of 1.x functionality (ex. context support), so both will exist for some time, the recommended version for Drupal 7 is still 1.x
Comment #8.0
attiks commentedUpdated issue summary.
Comment #9
attiks commentedOld issue, I think you better update to the picture module