inline image

HansR - September 15, 2009 - 01:50
Project:Imagecache Actions
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

hi,

I'm not a programmer so forgive me if I ask a something that's to much to handle...

is it possible to create an action that puts images 'inline' ? Preferably with the options : left, right, top, bottom...

thanks.

#1

HansR - September 15, 2009 - 02:00

one thought... maybe could solve this temporarily...

I know there is a php action... could it be modified to create an additional action to wrap an HTML tag around an image ?
Since I mention 'around an image' I guess it should come with 2 fields to enter.. one to put before the image, one after the image...

I guess this could be a solution to show pictures inline... or am I wrong again in the simplicity of my question ? Then I appologize...

just trying to do some thinking , because I really need to show my pictures inline without having to use other modules that or:
* Break the imagecache actions
* affect the whole site and all its pictures...

#2

dman - September 15, 2009 - 02:21
Status:active» won't fix

It's not something that can be done from the imagecache end.
Imagecache processes image files and creates the binary data that gets referred to in an imag src= attribute.
Theming and css have to happen in the content display routines. How you put that image on your page is a function of your theme, or possibly some UI configs within whatever display routine you are using (cck imagefield? IMCE? you don't explain)

There is theme_image function you can override in your theme - but that has no special connection with imagecache.
There is even theme_imagecache() which MAY be able to be used for what you want. But in general this is out of scope for the image transformation libraries. It's a theme thing.

And there is - AFAIK, no text-wrapping 'align:bottom' within CSS. Although it would be interesting to find.

 
 

Drupal is a registered trademark of Dries Buytaert.