Search the Community
Showing results for tags 'image size'.
-
I was wondering if anyone has scaled images inside of a graphic frame in a way different than the presets (Best fit, Proportional fill, Fill to shortest edge & Fill)? We're building out a business card which our customers will be uploading (inside DSF) their own head shots to (per Marketing we can't host a gallery) and they don't always fit right. I've done some trial and error with best fit & clip and I've had varied results. Has anyone else tried to do this?
- 7 replies
-
- image scaling
- image size
-
(and 1 more)
Tagged with:
-
I have an array rule that produces inline images based on an external data file. I need to be able to proportionally scale the inline images to height="900" Where and how within this rule do I control the size of the inline images? //inline text if (FusionPro.inValidation) Rule("OnJobStart"); var safety1 =""; var safety2 = ""; var safety3 = ""; var safety4 = ""; var safety5 = ""; var safety6 = ""; var icon1 = ""; var icon2 = ""; var icon3 = ""; var BootnameText = Trim(ReplaceSubstring(GetFileName(Field("PartNo")), ".pdf", "")); var i = XDF.FindRecord(0, BootnameText); { if (i>0 && BootnameText != "") { safety1 = XDF.GetFieldValue(i, 4); safety2 = XDF.GetFieldValue(i, 5); safety3 = XDF.GetFieldValue(i, 6); safety4 = XDF.GetFieldValue(i, 7); safety5 = XDF.GetFieldValue(i, 8); safety6 = XDF.GetFieldValue(i, 9); icon1 = XDF.GetFieldValue(i, 14); icon2 = XDF.GetFieldValue(i, 15); icon3 = XDF.GetFieldValue(i, 16); } } var counter = 0; var fullString = ""; var usedFilled = 0; CountArray = [safety1, safety2, safety3, safety4, safety5, safety6, icon1, icon2, icon3]; newTableArray = []; for (i = 0 ; i < CountArray.length ; i++) { if (CountArray != "") { counter++; var Pic = Resource(CountArray, "graphic", "true").content ; //height="900" newTableArray[usedFilled++] = Pic + " " } } { for (j = 0 ; j < newTableArray.length ; j++) { fullString += newTableArray[j] } return fullString}}