Is it possible to call this module's theme function from a template file to automatically resize a site logo instead of content images?
Thanks,
-mike
Is it possible to call this module's theme function from a template file to automatically resize a site logo instead of content images?
Thanks,
-mike
Comments
Comment #1
frazras commentedWhat are the alternative methods to accomplish the above? For even other non-fielded images
Comment #2
frazras commentedI simply created a node using the adaptive image module then copied the HTML it used and pasted it in my theme
It could be a bit more elegant. Maybe this module should try and address that using this same idea.
Comment #3
chefnelone commentedI also think it's a good idea to implement this feature.
Comment #4
tmsimont commentedAlthough this would be an awesome feature, this isn't so straightforward to implement into this module.
This is because of a limitation of theme_image_style()
The logo is in the theme folder, so unless that core image function is adjusted to work with theme images, this is a no go.
However, if you want to just drop your logo into the root of the public files directory you can use code like this:
I'm using that in template php in a hook that overrides how the module "Blockify" renders the logo block.
Note that I'm using an image style called "leading" and my logo is right in the root of the public files directory, and is named "logo.png"
Comment #5
n1k commentedFor now use the Workaround. Can't implement this yet (#4).