What: ImageCache Preset change on Drupal Core Update
Where: 2 new parameters where added in ImageCache presets when using Crop: xoffset and yoffset. These values had a 'null' value causing an error and not creating the images.
Fix: Added values of xoffset: 0 and yoffset: 0
About the ImageCache Module which is part of the Drupal Core Module
This module automagically resizes images on upload when a user uploads an image. Our use of it is when creating pages that have a browse button to upload an image, it uses this system to automagically resize the images to specific sizes so the layout and design remain consistent. Since we only use Crop on the Officers content, it only showed the issue there when creating a new one.
Comments
Comment #1
crutch commentedmultiple errors will reveal the issue
imagecopyresampled() expects parameter 5 to be long, string given in /home/*/public_html/sites/all/modules/imageapi/imageapi_gd.module on line 98.
imagecache_crop failed. image: sites/default/files/imagecache_sample.png, data: Array ( [width] => 85 [height] => 85 [xoffset] => [yoffset] => ) .
action(id:3): imagecache_crop failed for sites/default/files/imagecache_sample.png
Failed generating an image from imagecache_sample.png using imagecache preset officer_picture.