Hi,
When using the Aspect Switcher, it would be great if the assigned Horizontal and Vertical presets would be visible in the css code. Maybe a class-name "horizontal" and "vertical". That way you could be able have more freedom as sometimes a vertical image needs other css settings. It's something small, but I think it would help a lot of people save time.
This is a great module by the way!
Cheers,
Danny
Comments
Comment #1
dman commentedUnderstood and agreed, but there is just no way to feed that information up the chain.
The request for a binary image (which imagecache_actions handles only a small bit in the middle of) is done asynchronously with the actual building of the page and HTML!
- page is built
- somewhere in the middle of the page building, views or whatever says 'put a processed image blob here' Tha-yer
- the rest of the page is built, HTML is sent to the browser
- Browser assembles the layout, and comes to the point where an image should go
- ONLY THEN does it make a request to imagecache
- imagecache processes, and in doing so figures out the aspect of the image He-yer
- image file is sent back to the browser and squeezed into the layout.
... "You can't get tha-yer from he-yer"
... that said, it's possible the NEXT time the same image is requested for the renderer to look at the resulting dimensions of the file on the system (only that's not done) and possible for it to garnish it with more class based on inspection - but that's totally removed from anything imagecache_actions can help with.
Another approach is possible, but it requires a smarter embed widget, not something this module can do.