I've got two actions stacked up:

0: Scale - width: 450, height: , upscale: No
1: Rotate - degrees: 90, randomize: No, background: #FFFFFF

Regardless of what priority I have them set at it only runs the rotate, the scale action never happens. Might this be related to #290925: theme_imagecache_scale syntax error?

Comments

damienmckenna’s picture

I forgot to mention:

* it is configured to use the gd module rather than imagemagick
* the php memory_limit is set to 128mb

damienmckenna’s picture

I had spent about three hours digging through the data that was being generated by the process of doing two actions, but ultimately here is the result.

It turns out to be a bug when you rotate the image at the same time as resizing it, basically it gets confused between the dimensions.

The image starts off at roughly 120x1500. I had been setting it to rotate 90' so it goes to 1500x120, and then resize down to 450xwhatever. However, it was saying "but the image is only 120px wide so I'm not going to resize it" and just leaving the rotated image as the 1500x120.

What I've got it doing now is resizing first to whateverX450 and then rotating, and it works. Amusingly I tried it rotating and then resizing to whateverX450 and it came out all warped. So, I got it working, and now we have an idea where the bug is - the code for rotating!

Yay.

Damien

fizk’s picture

Status: Active » Closed (won't fix)