Image is not proportional

Talk about Image/File fields (uploading, problems etc.)

Moderator: alexandrleonenko

StrefaUrody
Junior
Junior
Posts: 11
Joined: Mar 26th, '09, 18:51
Location: Poland
Contact:

Image is not proportional

Postby StrefaUrody » May 1st, '09, 11:35

To show image I've used:

Code: Select all

"products_image"      =>array("header"=>"Foto",                "type"=>"image", "align"=>"center", "width"=>"20x", "wrap"=>"nowrap", "text_length"=>"-1", "tooltip"=>"false", "tooltip_type"=>"floating|simple", "case"=>"normal|upper|lower|camel", "summarize"=>"false", "sort_type"=>"string|numeric", "sort_by"=>"", "visible"=>"true", "on_js_event"=>"", "target_path"=>$IMAGES__DIR, "default"=>"default_image.ext", "image_width"=>"17px", "image_height"=>"17px", "magnify"=>"true", "magnify_type"=>"popup", "magnify_power"=>"10"),


but image has wrong ratio. It means that when I have image 640x480 and then I want to show small icon 17px x 17px script should keep valid ratio.

Is it possible to do this?

administrator
Site Admin
Site Admin
Posts: 6098
Joined: Jan 7th, '09, 23:18
Contact:

Re: Image is not proportional

Postby administrator » May 1st, '09, 22:41

In version 5.0.5 added new functionality - resizing images on uploading.


Return to “Field type: "image/file"”