Skip to content

Instantly share code, notes, and snippets.

Created January 10, 2015 23:28
What would you like to do?
Simple function to go in your template.php file to keep Drupal from inserting height/width into image tags.
function themename_preprocess_image(&$variables) {
foreach (array('width', 'height') as $key) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment