bmauer Posted September 6, 2012 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?
ThomasLewis Posted September 6, 2012 Posted September 6, 2012 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.
ReminderVDP Posted February 1, 2013 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.
Dan Korn Posted February 5, 2013 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.