Aspect switcher doesn't respect crop offset keywords from subactions
ptitb - October 21, 2009 - 14:28
| Project: | Imagecache Actions |
| Version: | 6.x-1.6 |
| Component: | Canvas Actions Module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Description
While working with the very usefull aspect switcher action I noticed it doesn't respect the x offset and y offset settings from the subaction crop method.
When I use an offset with pixels it works like a charm, but with using the offset keywords it always uses top left.
The example image in the subactions shows the correct manipulation. The example image from the action with the aspect switcher uses top left.
I'm using the following module versions:
- Imagecache 6.x-2.0-beta10
- ImageApi 6.x-1.6
- Image toolkit GD2

#1
Just a clearer title.
#2
I can't imagine how being called from an aspect switcher would be affecting the behaviour of the sub-actions. They should be entirely modular.
It may be possible for the size of the image to become incorrect sometimes (under imagemagick) and that may produce what looks like an incorrect result, but really, the fact that a sub-preset is being called from an aspect-switching context should NOT make any difference to the way the keywords are parsed!
Are you sure the sub-actions are working correctly outside of the switcher?
Can you post a few screenshots of the settings pages?
#3
That was what I was thinking. The sub-actions work great outside the switcher.
But I got a workaround right now. I'm only using the scale action in the sub-action and then crop in the aspect-switcher.
This works like expected and does the job for me!
I attached an image that shows the problem when I'm using a crop in the sub-action.