Exporting Image Styles to Code: Making Deployment Easier

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up

Image Styles

Loading ...

Exporting Image Styles to Code: Making Deployment Easier

Loading...

It is very time consuming and error prone to repeat "click steps" among multiple sandboxes, development and production in order to get your new image styles to appear. In this video, I will show you how to write code that turns your "custom" image style into a "default" image style so that you can use source control to update all of your site environments.

I am assuming you already know how to create image styles in the administrative interface. Familiarity with basic module development is helpful, but if you follow the techniques and patterns I demonstrate, you will successfully export your image styles into a new custom module.

Additional resources: 

Average review

5
Average: 5 (1 vote)

Reviews

5

Really good tutorial as moving a large number of image settings to a staging server would take quite a bit of time without this. Also having the note about what "Default", "Overridden" & "Custom" means was helpful as I'd been wondering what "Overridden" was on a site I'm currently working on.