Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
dman CreditAttribution: dman at Sparks Interactive commentedCan'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.
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?
Comment #3
fietserwintip: 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.
Comment #4
kristiaanvandeneyndeI'm running GD. I'll see if I can reproduce it and then upload the exported style + image.
Comment #5
fietserwinFeel free to reopen if you are able to reproduce the error.