add backgroundcolor and position the image

See all posts Reply

add backgroundcolor and position the image new!
by michelle, 16 years, 7 months ago
I use your class to upload images that are resized to a maximum with or height, keeping its original ratio.

with the image_background_color attribute, I can either define the background-color OR the position of an image in the "container".

Is there a possibility to define the background-color AND the position of the image in the "container"?Reply
Re: add backgroundcolor and position the image new!
by colin, 16 years, 7 months ago
I am not too sure what you mean.

But you can set the background color (use version 0.25 RC1), and set up some margins using image_crop with negative margins, or image_ratio_crop or image_border.

Does it answer your question?Reply