Option: use relative image size values to fit into a theme

Konstantin Boyandin - August 16, 2007 - 06:39
Project:Image
Version:5.x-1.x-dev
Component:image.module
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active (needs more info)
Description

Greetings,

A suggestion: make it possible to specify the relative dimensions for the image, e.g. to generate <img> tag similar to this one:

<img src="/path/to/image" width="90%" height="90%" class="imageclass" />

That will allow to fit the image into the actual soace available without distorting the design.

All the best,

Konstantin

#1

drewish - August 16, 2007 - 21:12
Status:active» active (needs more info)

i don't understand why you'd want to do that...

#2

Konstantin Boyandin - August 16, 2007 - 23:26

This is to make the image to fit into available space without breaking the design.

Otherwise, if I use, for example, garland theme, and the image uploaded is wider than 700px and the browser window is narrower than 1024px in width, the right blocks start to overlap the image displayed by this module.

With the options I mentioned, the image will simply be resized by CSS style to fit into the actual available space.

See how that would look like in action:

http://boyandin.ru/picture/1

(I 'hacked' the image.module to supply the relative width/height instead of static ones)

 
 

Drupal is a registered trademark of Dries Buytaert.