Jump to content

Scaling images within a graphic frame


Recommended Posts

I have a customer who uses over 150 logos.

While a part of the logo is the exact same size, the overall size of all the logos changes, so I can not use any of the frame settings (Best Fit, Proportional, etc).


What I need to do is to set the scale of the image within the frame to an exact number (ex: 102%).


Does anyone have any information on this?

Link to comment
Share on other sites

This is the only way I know how to do scaling. It's setup as an inline graphic text rule.


var imgname = "image name.jpg";

function imgresize(img)
   var newscale = 1.02; // this is the 102%
   var TM = new FusionProTextMeasure;

   return '<graphic file="' + imgname + '" width=' + Math.round(TM.textWidth * newscale) + ' height=' + Math.round(TM.textHeight * newscale) + '>';

return imgresize(CreateResource(imgname, "graphic"));


In my case under FP 8.1 I have to refresh the preview when I update the rule to see the image. Not sure if this is just my video rendering or what but I thought I would mention it.

Edited by ThomasLewis
Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...