bmauer Posted September 6, 2012 Share Posted September 6, 2012 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? Quote Link to comment Share on other sites More sharing options...
ThomasLewis Posted September 6, 2012 Share Posted September 6, 2012 (edited) 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; TM.CalculateTextExtent(img.content); 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 September 6, 2012 by ThomasLewis Quote Link to comment Share on other sites More sharing options...
ReminderVDP Posted February 1, 2013 Share Posted February 1, 2013 Bill, Did you ever get a definitive answer on this? I have the same problem but it is graphic frames instead and not inline graphics. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted February 5, 2013 Share Posted February 5, 2013 Bill, Did you ever get a definitive answer on this? I have the same problem but it is graphic frames instead and not inline graphics. See my answer in the other thread. However, there's no reason that you shouldn't be able to use an inline graphic in a text frame instead of using a graphic frame. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.