Inverting plugin to max-size
-
Hi Kyle,
I have been messing with your plugin for a while. And messing is the keyword as I mainly work with JavaScript.
—
I will firstly explain you what I am trying to achieve:
https://tysonmatanich.github.io/picturefill/samples/max-width.html
If you’d visit this site you’d notice picturefill markup inverted to manipulate imgs using max-width query. You would also notice that order of pictures is inverted to what is achieved with your picturefillwp
And that would be the output I am trying to achieve using your plugin. I have tweaked the plugin to a certain extent, but it just keep getting messier.
—
In the end I made it work (in few cases), but this is more a result of a “let’s change this bit of code and see how it behaves” rather than holistic approach and good coding practices.
—
Getting to the point:
I am trying to use amended picturefill: https://github.com/tysonmatanich/picturefill with your plugin’s php bones.The questions are:
- could you please point me to the places in your code that would revert the output order?
- Is there a way to make it elegantly so the helper functions such as setting add_image_to_responsive_queue preserve their funcionality
—
I am aware that your plugin was developed to serve pretty specific conditions and it’s not your priority to change it’s assumptions.
But the fact is – your plugin is the best solution for WP adaptive images I have encountered so far. Thus I am willing to spend fair amount of time trying to make it work the other way around.Any help would be greatly appreciated.
Regards,
Filip
- The topic ‘Inverting plugin to max-size’ is closed to new replies.