[JS] image too big - resize

Hi all,
I import an XML file who can contain images.
The problem is when an image is too long (and can't be contain in the textframe), it doesn't appear.
I would like to resize it, but when I do imageTooLong.geometricBounds, I have an error. Which is not surprising.
So, how can I resize imageTooLong?
Thanks,
Sophie

Hi,
i think your snapshot look like image load into the table, if my guess its correct please use this script. i have join the table column extended the based on text frame width.
var myDoc = app.activeDocument;
for ( var s = 0; s < myDoc.stories.length; s++ ){
    var myStry = myDoc.stories[s];
    for ( var g = 0; g < myStry.allGraphics.length; g++ ){
        myStry.allGraphics[g].horizontalScale = 100;
        myStry.allGraphics[g].verticalScale = 100;
        myStry.allGraphics[g].fit(FitOptions.FRAME_TO_CONTENT);
var myTables = myDoc.stories.everyItem().tables.everyItem().getElements();
    for (var t = 0; t < myTables.length; t++) {
          var myTableWidth = myTables[t].width;
          var myTableColWidths = myTables[t].columns.everyItem().width;
          var myTableParent = myTables[t].parent;
          var myParentWidth = myTableParent.textFramePreferences.textColumnFixedWidth;
          var myAdjustment = myParentWidth / myTableWidth;
          for (var c = 0; c < myTables[t].columns.count(); c++) {
               myTables[t].columns[c].width = myTableColWidths[c] * myAdjustment;
thx
CSM_PHIL

Similar Messages

  • Images too big to be fully viewed

    I've got a children book, all pages are images, which are too big to be viewed in Adobe Digital Editions. I see that there's a part of the images I don't see at the bottom, but I can move down to it or resize the image to view it whole. Can anybody help me?

    I have your solution: Dropbox. I created a shared folder on Dropbox, identified certain people to whom I granted access, and I uploaded a 350MB HD video I took with my iPhone 4. The video uploaded without being compressed, and is viewable in native resolution. Great solution!

  • Disk Image too big in iDVD 6.0.1

    I created a 1 hour 27 minute movie in iMovie 6.0.1 and dragged it into a new iDVD 6.0.1 project. Used Travel widescreen theme and the default audio clip for that main menu. Removed the audio clips from the chapter menus. Created a disk image: 4.29GB, which seems big for an hour and a half movie...
    Then I noticed a typo. So I deleted the movie from iDVD and dragged my modified iMovie in. Rebuilt the iDVD menus. This time I added a 3 minute AIFF piece of music instead of the default on the main menu. Created a disk image: 4.41GB. Toast Titanium 7.0.2 wouldn't let me burn the disk image to DVD-R unless I used their built-in compression feature; which I did. Looks virtually the same as my original DVD.
    I looked at the sizes of VOBs in both images. The main menu VOB (use MPEG Streamclip to find it) was 524.3MB in the disk image that would fit on a SL DVD-R. The one that didn't fit was 914MB. I have to assume that's because of the length of the music on that main menu.
    I then edited my 3 minute music to 30 seconds and used that clip. Deleted encoded assets, and re-encoded. That disk image is 4.26GB and squeaks on a SL DVD-R without using Toast compression.
    With a movie running only 1 hour and 27 minutes, this "too big" should NOT be an issue.
    I did post this here too: http://www.apple.com/feedback/idvd.html
    G4 DP 1.25 GHz 2GB RAM 4 Drives 770GB Mac OS X (10.4.6) 2 SuperDrives (SL 8X & DL 16X)

    The problem seems to be the same as in
    http://discussions.apple.com/thread.jspa?threadID=450944&tstart=120
    I also submitted the problem to Apple.
    AplleCare did not provide a solution.
    I think I have some leads on how to fix it, but no clear solution yet.
    PowerMac G4/G5   Mac OS X (10.3.9)   iLife06

  • IOS Image too big, need help

    Folks,
    I have dual Sup 720's that just came in from cisco. They have CATOS on them 8.4.(5). They have the base 524MB of DRAM and 64MB of flash(bootflash), no external flash card.
    My question is that i want to download Natice IOS onto this switch (122.18SXE4). When i see the requirements it tells me that i need 128MB of flash, but when i download the file it is only 35 MB big.
    Ca i run this image on my SUP with out upgrading the flash?
    I will make sure that i grade this post.

    If the image size is less than 64MB, then booting from bootflash is OK. Beginning with Sup720 12.2(18)SXE and later versions, most Native IOS images exceed the 64MB capacity of all internal partitions, including the sup-bootflash: or MSFC3 bootflash:
    partitions, so for 12.2(18)SXE and later an external flash device of at least 128MB is required with Cisco part number MEM-C6K-CPTFL128M=. For multiple concurrent image support in this boot device, the external 256MB CompactFlash Cisco part number of MEM-C6K-CPTFL256M= is required to use as the external boot device.
    Some feature sets of versions > 12.2(18)SXE result in a smaller file, but as long as it is less than 64MB, there is no problem with loading it onto onboard flash.

  • LightBox problem - Close image  too big

    Is anyone here familiar with LightBox image show, please?
    They have a image show, without the usual Windows icons and blue
    frame. Have tried all sorts, but can't get it working. As there is
    no documentation with the software, am rather lost...

    TC2112:
    I have already done as you suggested above, before I posted
    the code, which got cut-off at right margin, hence you did not see
    the complete line. So here is a re-post ot it. But it still does
    not work. The proper image image shows in a new blank window, at
    0,0
    Any suggestions, please?
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <style type="text/css">
    body {scrollbar-3dlight-color:#ffd700;
    scrollbar-arrow-color:#ff0;
    scrollbar-base-color:ff6347;
    scrollbar-darkshadow-color:ffa500;
    scrollbar-face-color:#17ac00;
    scrollbar-highlight-color:#ccffff;
    scrollbar-shadow-color:#f0f}
    </style>
    <script type="text/javascript"
    src="js/prototype.js"></script>
    <script type="text/javascript"
    src="js/scriptaculous.js?load=effects,builder"></script>
    <script type="text/javascript"
    src="js/lightbox.js"></script>
    <link_rel="stylesheet" href="css/lightbox.css"
    type="text/css" media="screen"/>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Canapes. Bespoke canapes in West London
    area.</title>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4
    resized
    if (init==true) with (navigator) {if
    ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
    onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW ||
    innerHeight!=document.MM_pgH) location.reload();
    MM_reloadPage(true);
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
    Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
    i<a.length; i++)
    if (a
    .indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document;
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++) x=d.forms
    [n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    x=MM_findObj(n,d.layers.document);
    if(!x && d.getElementById) x=d.getElementById(n);
    return x;
    function MM_nbGroup(event, grpName) { //v6.0
    var i,img,nbArr,args=MM_nbGroup.arguments;
    if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null &&
    !img.MM_init) {
    img.MM_init = true; img.MM_up = args[3]; img.MM_dn =
    img.src;
    if ((nbArr = document[grpName]) == null) nbArr =
    document[grpName] = new Array();
    nbArr[nbArr.length] = img;
    for (i=4; i < args.length-1; i+=2) if ((img =
    MM_findObj(args
    )) != null) {
    if (!img.MM_up) img.MM_up = img.src;
    img.src = img.MM_dn = args[i+1];
    nbArr[nbArr.length] = img;
    } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img =
    MM_findObj(args)) != null) {
    if (!img.MM_up) img.MM_up = img.src;
    img.src = (img.MM_dn && args[i+2]) ? args[i+2] :
    ((args[i+1])? args[i+1] : img.MM_up);
    nbArr[nbArr.length] = img;
    } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
    img = document.MM_nbOver
    ; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
    } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
    for (i=0; i < nbArr.length; i++) { img=nbArr; img.src
    = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img =
    MM_findObj(args
    )) != null) {
    if (!img.MM_up) img.MM_up = img.src;
    img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
    nbArr[nbArr.length] = img;
    //-->
    </script>
    </head>
    <body bgcolor="#EEFB95" text="#0000FF" link="#0000FF"
    vlink="#0000FF" alink="#0000FF"
    onLoad="MM_preloadImages('home_selected.jpg','home_over.jpg','services_selected.jpg',
    'services_over.jpg','canapes_selected.jpg','gallery_selected.jpg',
    'gallery_over.jpg','contact_selected.jpg',
    'contact_over.jpg');initLightBox()">
    <div id="Layer2" style="position:absolute; width:450px;
    height:300px; z-index:2; left: 361px; top: 216px;">
    <blockquote>
    <p><font color="#0000A0" face="Verdana, Arial,
    Helvetica, sans-serif">
    <a href="pop/cold/cold_avocado_pop.jpg"
    onClick="lightbox" >Avocado/cheese pate on
    toast</a><br>
    <a href="javascript:;">Bruschetta with various
    toppings</a><br>
    <a href="javascript:;">Bread sticks with Proscuitto
    ham</a><br>
    <a href="javascript:;">Celery sticks with cream
    cheese</a><br>
    <a href="javascript:;">Celery, cucumber, carrot
    sticks</a><br>
    <a href="javascript:;">Cheese balls with different
    coatings</a><br>
    <a href="javascript:;">Cheese cubes with
    garnish</a><br>
    <a href="javascript:;">Cheeses on water
    wafers</a><br>
    <a href="javascript:;">Cherry tomatoes with various
    fillings</a><br>
    <a href="javascript:;">Chicory leaves with various
    fillings</a><br>
    <a href="javascript:;">Cold meat slices on water
    wafer</a><br>
    <a href="javascript:;">Cucumber cups with various
    fillings</a><br>
    <a href="javascript:;">Devilled
    eggs</a><br>
    <a href="javascript:;">Filo cups with various
    fillings</a><br>
    <a href="javascript:;">Smoked salmon, cream cheese on
    rye<br>
    Tarts with various fillings</a></font></p>
    <p></p>
    <p><br>
    </p>
    </blockquote>
    </div>
    <h1 align="left"><img src="canapes_text.jpg"
    width="881" height="543" hspace="45"
    onbeforeunload="MM_preloadImages('canapes_text.jpg')"></h1>
    <div id="Layer1" style="position:absolute; width:176px;
    height:276px; z-index:1; left: 160px; top: 217px; visibility:
    visible;"><br>
    <a href="index1.htm" target="_top"
    onClick="MM_nbGroup('down','group1','home','home_selected.jpg',1)"
    onMouseOver="MM_nbGroup('over','home','home_over.jpg','home_over.jpg',1)"
    onMouseOut="MM_nbGroup('out')"><img src="home_unsel.jpg"
    alt="" name="home" border="0" align="absbottom"
    onload=""></a><br>
    <a href="services_page.htm" target="_top"
    onClick="MM_nbGroup('down','group1','services','services_selected.jpg',1)"
    onMouseOver="MM_nbGroup('over','services','services_over.jpg','services_over.jpg',1)"
    onMouseOut="MM_nbGroup('out')"><img src="services_unsel.jpg"
    alt="" name="services" border="0" onload=""></a><br>
    <a href="canapes_main.htm" target="_top"
    onClick="MM_nbGroup('down','group1','canapes','canapes_selected.jpg',1)"
    onMouseOver="MM_nbGroup('over','canapes','canapes_selected.jpg','canapes_selected.jpg',1) "
    onMouseOut="MM_nbGroup('out')"><img
    src="canapes_selected.jpg" alt="" name="canapes" border="0"
    onload=""></a><br>
    <a href="gallery_main.htm" target="_top"
    onClick="MM_nbGroup('down','group1','gallery','gallery_selected.jpg',1)"
    onMouseOver="MM_nbGroup('over','gallery','gallery_over.jpg','gallery_over.jpg',1)"
    onMouseOut="MM_nbGroup('out')"><img src="gallery_unsel.jpg"
    alt="" name="gallery" border="0" onload=""></a><br>
    <a href="contact_page.htm" target="_top"
    onClick="MM_nbGroup('down','group1','contact','contact_selected.jpg',1)"
    onMouseOver="MM_nbGroup('over','contact','contact_over.jpg','contact_over.jpg',1)"
    onMouseOut="MM_nbGroup('out')"><img src="contact_unsel.jpg"
    alt="" name="contact" border="0" onload=""></a><br>
    </div>
    </body>
    </html>

  • Images - too big

    Hi,
    I am trying to create something like an album for photographs in java.
    Each picture is about 1 MB JPEG.
    When I try to load them as thumbnails (using ImageIcon), I get OutOfMemoryException.
    As I understand, ImageIcon uses Image, which is represented in BITMAP format, so each JPG is represented internally as a BITMAP, so it can eat up to 10 - 20 MB per image...
    That's why it crashes...
    Does anyone know, how to solve it?
    Thanx
    xhell

    Thanks,
    but I still find it somehow confusing...
    I have seen many similar programs, and noone is using 60MB memory.
    And my one is very simple.
    I had an idea to draw the pictures somehow without the usage of icons and images...

  • Slide shows images too big. How to scale??

    OK, I've been pulling my hair out over this.
    I create a slide show but the images crop off the tops and bottoms, as they drift along. I've played with the settings (fill screen/ 4:3/16:9) but no luck. Also, vertical images are a joke in slide show.
    Q: How can I make the iPhoto slide show truly fit images to screen? Thanks.
    -Dooki

    Thanks Larry. By default it's turned off,though I've tried on as well.
    I played more by adjusting the size of the images in photoshop. The default was something like 32"x 27"(thereabouts) @ 72dpi. I reduced it to 11 x 8.5 @100dpi. This reduction did not work either. It still cropped off the top and bottom.
    -Dooki

  • Inserted still image too big . . .

    When I insert a still image and play it, the image is zoomed in about 400%, what am I doing wrong?

    OK so your AVCHD media is either 1920x1080 or 1280x720. Whichever it is, if you need to move on the image, make the still image twice that horizontal resolution, so for 1280 make it 2560. If you don't need to move on it make it 1920x1080 or 1820x720 depending on your video format.

  • Save for Web & Devices always says image too big ?

    Every time I invoke this function in CS5 Windows 64 bit, it says the image exceeds the size the tool was designed for. Usually these are shots from my Nikon D300 so about 4000x3000 pixels. The tool still works but the dialog pops up every time

    SFW, in order to make the previews and display an expected file size, is actually saving a temp file as a GIF, JPG, PNG, whatever. This temporary preview can take time if you throw a large image at it before entering a value for smaller image dimensions. So Adobe throws a warning at the user to squelch obscene ambitions.

  • PhotoStream ... image too big or wrong format

    This apparent error occurs with Aperture 3.4 released today....
    I can share an image into a new PhotoStream and it works just fine.
    If I attempt to add an image to an existing PhotoStream Aperture throws the error shown below.
    Very repeatable with multiple streams.

    thank you for your response and your suggested solution.
    It works!
    --> Both boxes must be turned on.

  • 30" display screen images too BIG

    I am aware of changing resolutions in the display area of system prefs.
    I have read that some people have this issue, that their computer does not go up to the resolution it needs. My screen is awesome... but it looks like I am looking at everything through blurry magnifying glass.
    I bought it for my macbook pro, that has not arrived yet, so I am using it with my (older) G4 and the resolution only goes to 1280 x 800, I did order the dvi to video adapter for the for the macbook, but will this resolve my issue on this computer? If not, is there any sort of adapter cable I can get, it will be awhile before I purchase another computer... so I'd like to make this work for both. Thank you.

    So there is no adapter I can get to use with it? I kind of figured that once I went through everything.... to bad apple doesn't inform people of that before such a purchase!!!! On the description it says "PowerBook G4 with dual-link DVI support", so I bought a cable.... I am not a techy, so this should be made REALLY clear for a monitor that is just under $1800!

  • Photoshop CC: Have a template that I moved image into.  Image is too small.  How do I resize the image while in the template?  Or must I go to original image file and resize there again and again until I get the right fit?

    I have a template that I am able to plug different pictures into at different times.  The problem is that when I plug an image into that template, I find that the image is either too big or too small.  Is there a way to plug the image into the template and resize the image (and not the template itself) OR will I have to go to the file with the original image and resize it there and then try to plug it in to the template to see if it fits------and if it does not fit, go back to the original file with the image and resize it again and see if that fits---and so on and so on...........?  I have tried the" image size" option but it's hit or miss------mostly miss!
    Thanks!

    Read up on Smart Objects. It looks like you have no idea as to how to create and use them.
    Jut create a Smart Object from the layer containing whatever it image it is that you are "plugging into your template".  But you do need to learn the application at its most basic levels.
    Photoshop is a professional level application that makes no apologies for its very long and steep learning curve.  You cannot learn Photoshop in a forum, one question at a time.
    Or is it possible that you don't even have Photoshop proper but the stripped-down Photoshop Elements?"
    If the latter is the case, you're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you would want if you're working in Elements.:
    https://forums.adobe.com/community/photoshop_elements/content
    If you do have Photoshop proper, please provide the exact version number of that application and of your OS.
    (edited for clarification)

  • Hi! I need help, today I connected my mac Book Air to a tv for a presentation and as soon as I conected it the image on my screen went bigger. And I cant find the way to put it back as it was before. The Images are too big! heelp

    Hi! I need help, today I connected my mac Book Air to a tv for a presentation and as soon as I conected it the image on my screen went bigger. And I cant find the way to put it back as it was before. The Images are too big! heelp

    Morning DeeHutton,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Best of luck,
    Mario

  • My homescreen won't resize and I can't access anything because everything is too big to navigate.  Help.

    My homescreen won't resize and I can't access anything because everything is too big to navigate.  Help.

    Double-tap the screen with three fingers to disable Zoom.
    To turn off Zoom go to Settings > General > Accessibility > Zoom and turn this Off.

  • Disk image of HD -- "image/device too big"

    I'm trying to make a disk image of my hard drive as a backup. I did this with the other three Macs in my house, using Disk Utility and saving them to an external Firewire drive. No problem. But when I try to do the same thing with my G5, I get a message saying "image/device is too big." If I was getting this message from my wife, I guess I'd be flattered ... from my Mac, not so much.
    The thing is, I should have plenty of room. The external drive has 139 GB of space available and the G5 is only using 51GB. Get Info says I have 148 GB capactiy and about 97 GB available. Does the external drive need room for the whole 148 GB to create the disk?
    The main difference between the other operations and the troublesome one is that I save the other Disk Images using my G5 running MacOS 10.4.11. The other Macs all were running 10.3.9. I'd access them in Target Mode on my G5 and save the Disk Image. When I tried to reverse the process and used the newest 10.3.9 machine (a G4) to save a dmg of my G5, I get the "too big" message.
    Any suggestions? Would Carbon Copy Cloner (or something else) allow me to do this from the G5? Any help would be appreciated.

    Found answer elsewhere.

Maybe you are looking for