• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfimage resize and keep ratio

Contributor ,
Mar 04, 2011 Mar 04, 2011

Copy link to clipboard

Copied

I use CF8,

Using CFIMAGE for resize, ask for height and width,

I only want to give width , then height should keep the same ratio.

But it wants an height value.

So this means I have to calculate the final height relative to the given width ?

Is there a way to give the width or the height and that tag keep the ration for the other value ?

Thanks for any help.

Pierre.

TOPICS
Advanced techniques

Views

882

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 07, 2011 Mar 07, 2011

Copy link to clipboard

Copied

Use the corresponding ImageResize() function. You can leave the height value as blank.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_h-im_39.html

-Fernis

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 20, 2011 Mar 20, 2011

Copy link to clipboard

Copied

LATEST

Yes, I used imageResize() function, then it does work fine.

Thanks.

So <cfimage with resize is not really isefull.

Pierre.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation