I have the following set-up:
- Autorotate
- Scale width to X
- Define canvas under image, transparent with dimensions X Y
- Crop image to X Y

This set-up worked before, until I added Autorotate and #2215369: Various bugs with PHP 5.5 imagerotate(), including when incorrect color indices are passed in in one go. Now I have to specify #ffffff instead of leaving the canvas action field empty or the image is entirely white. As if the transparent canvas is drawn over the image.

Comments

kristiaanvandeneynde created an issue. See original summary.

dman’s picture

Can't reproduce.
With current imagecache_actions (7.x-1.x-dev May 7), and Current drupal core + the patch from #2215369: Various bugs with PHP 5.5 imagerotate(), including when incorrect color indices are passed in
and the following style preset.

a:3:{s:4:"name";s:13:"issue-2565571";s:5:"label";s:13:"issue-2565571";s:7:"effects";a:4:{i:3;a:3:{s:4:"name";s:21:"imagecache_autorotate";s:4:"data";a:0:{}s:6:"weight";s:1:"1";}i:4;a:3:{s:4:"name";s:11:"image_scale";s:4:"data";a:3:{s:5:"width";s:3:"300";s:6:"height";s:0:"";s:7:"upscale";i:0;}s:6:"weight";s:1:"2";}i:5;a:3:{s:4:"name";s:26:"canvasactions_definecanvas";s:4:"data";a:4:{s:3:"RGB";a:1:{s:3:"HEX";s:0:"";}s:5:"under";i:1;s:5:"exact";a:4:{s:5:"width";s:3:"300";s:6:"height";s:3:"300";s:4:"xpos";s:6:"center";s:4:"ypos";s:6:"center";}s:8:"relative";a:4:{s:8:"leftdiff";s:0:"";s:9:"rightdiff";s:0:"";s:7:"topdiff";s:0:"";s:10:"bottomdiff";s:0:"";}}s:6:"weight";s:1:"3";}i:6;a:3:{s:4:"name";s:10:"image_crop";s:4:"data";a:3:{s:5:"width";s:3:"300";s:6:"height";s:3:"300";s:6:"anchor";s:13:"center-center";}s:6:"weight";s:1:"4";}}}

Ran it against a few test images, including ones that were expected to need autorotate.
All seemed fine, and worked as expected, no white overlay.

Can you upload the imagecache preset configs and your test image that's giving you trouble please?

fietserwin’s picture

tip: you can export an image style, like in #1, when you enable the image style admin sub module.

Oh, and are you using GD or imagemagick? I guess GD because you ran into the mentioned issue, but just to be sure.

kristiaanvandeneynde’s picture

I'm running GD. I'll see if I can reproduce it and then upload the exported style + image.

fietserwin’s picture

Status: Active » Closed (cannot reproduce)

Feel free to reopen if you are able to reproduce the error.