How to resize a rectangle with an image?

Hey,
I am working on a MacBook, for me this combination would be "CMD" + "ALT" + "SHIFT" to resize the Rectangle AND the Image placed inside. How is this possible with Indesign script? I'm working with Javascript.
Thanks really much in advance!!
Best regards

I found a workaround. This is not the proper solution, but it works for me. Note: "Width" and "Height" are the geometric bounds of the page substracted. x2-x1 = width, y2-y1 = height.
newX = width/100*5;
newY = height/100*5;
newWidth = width/100*95;
newHeight = height/100*95;
Then I just added my rectangle like so:
myRectangle = rectangles.add({geometricBounds:[newY, newX, newHeight, newWidth]});
myRectangle.place(File(myFile));
myRectangle.graphics[0].fit(FitOptions.proportionally);
myRectangle.graphics[0].fit(FitOptions.centerContent);

Similar Messages

  • How to resize project without losing the image resolution?

    I am trying to resize a project that recorded in 1271 x 768
    px to 800 x 483 px. I did it by clicked 'Project' > 'Resize
    Project...'. But after resize, the resolution of the movie is not
    clear, became blur. How to resize the project so that I'll have
    clearer movie? Thanks.

    Hi obtis and welcome to our community
    Unfortunately, there is little you may do to avoid this. The
    best way to avoid it is to simply record initially at the size you
    need so you don't have to use the Resize function.
    Here's the deal. Captivate stores images in the project as
    bitmapped images. Otherwise known as "raster" images. Basically
    they are a mosaic that comprises the picture. Initially, all is
    well and is crystal clear. But when you scale down a raster or
    bitmapped image, you are simply moving all the picture elements
    (PixEls) closer together. They overlap and the computer will
    calculate new values for what color they should be. Depending on
    how much you are resizing, the clarity drop can be acceptable or
    horribly bad. The more you resize smaller the worse it gets.
    Hopefully this helps... Rick

  • How can i fill letters with an image

    I am extremely new to mac software, I loved publisher on ms. I want to do bold lettering for wall displays but I want to fill the letters with images of what the heading is about. For example, when I did the vikings, I wrote each individual letter out very big and filled the letter with an image relating to the vikings, I am assuming this is possible on the mac, but I can't figure it out. Please help. I need my labelling done before I get back after the summer break!

    If you installed Windows on your MBP (Bootcamp or Parallels) you could use the same software.  Otherwise you will have to search of a Mac compatible version or some other alternative.
    Ciao.

  • How to resize or scale a group/ image button on flash catalyst 5.5

    i have problems resize or scale images group or images button to interaction with others states, when try to resize i recibe this warning:
    Non-Resizable Content This content is fixed size......

    Hello,
    I can't or don't know how to make a scalable custom button   I've spent much time in google but I didn't find solution
    Please see FXP file: http://cl.ly/3P2p3q1Q3Q1x440G0A1Y
    Please help!!!!!
    Thanks a lot!
    Ivan

  • How to draw a rectangle with rounded corners?

    Hi,
    I'm trying to draw a rectangle in a custom annotation and my appearance stream looks like:
    1 1 98 98 re 0.5 w 1 j 0 0 0 RG S
    The re-operator draws the rectangle an the j-operator along with the parameter 1 sets the join style to round.
    It does make the corners very slightly rounded, but it's only visible when setting the zoom level 200% and beyond.
    Do any of you know how to make the corners more rounded for the rectangle?

    I thought so
    So Cubic Bézier curves all the way.
    Could you help me with it?

  • How to change to working with referenced images but keep library on laptop

    Hi,
    So, my iPhoto library is getting too big - I'd like to be able to have the images stored on an external drive and refer to them from within iPhoto, whilst keeping the iPhoto Library itself on the laptop. I know exactly how to do this from scratch, by unchecking 'copy items to my iPhoto library' in advanced preferences, but I'm trying to figure out how to convert my existing library, which has all the photos stored within it, to one where all the original files are on an external drive and are referenced by iPhoto. This way, I can see the previews when I'm away without the external drive attached.
    Thanks!

    There is no easy way to do it and I would strongly urge you to reconisder.
    In a Referenced Library, iPhoto creates aliases to the location of the actual file. While there is at least one app that will help you replace those aliases with the actual files (convert a Referenced to Managed library) there is no app that will convert those files to aliases that point to the new location of the files. You will need to do each file manually.
    More importantly, iPhoto has no tools to manage Referenced files. While on the same volume, aliases will track moved files. However this is not the case where the files are on different volumes. The upshot of this is that should the link to the files be broken then you could find yourself reconnecting each and every alias in your Library, one by one.
    Also, I'm not sure about 09 but earlier versions of iPhoto would not open if there were movie files in the Library that were not available at time of launch.
    You can move an entire Library to an external disk. There are firewire and usb disks now no bigger than a pack of playing cards and will run from the laptop's power supply.
    Regards
    TD

  • I can't resize new rectangles with the new Illustrator 2014

    I know from reading other boards that there are related issues with snapping to grid but I'm having an issue only with resizing rectangles when I create them new. We have others in our company using Creative Cloud that have updated and they are not having the same issue I am having.
    Basically when I create any new rectangle, or rounded corner rectangle it is a fixed size and I am not given the handles to resize it. I have to select the object then go to Object > Shape > Expand Rectangle in order to get the corners to grab and reshape or resize. I have checked and unchecked all of the settings that I can see or read about and nothing changes this. It's a real pain to have to go through this with every object I create.
    I have also tried rebooting the software and my computer several times but it's still the same.
    Am I just missing some small setting somewhere?

  • How to mix time lapse with still images and imported movies ?

    Hello
    I have been shooting photos (time lapse with Camera Pro) and movies with a Nokia N8 and would love to use iMovie to mount all that.
    Unfortunately, for the time lapse I cannot get the duration of the photos to 0.03s, it just won't accept it. I have been looking around the forum and could only find sort of solutions when you have a transition or effect on the pictures but not when they are just fit to the screen...
    So now the time lapse looks much slower and broken than the movie itself... and it does not look nice.
    Another way would be to make the time lapse with QT Pro and then import it but I am affraid I am loosing quality in the process.
    Anybody knows how to fix this duration problem ?
    Thank you in advance for any helpful answer.
    Petri
    Mac OS 10.6.8
    iMovie : 9.0.4

    Able, Jim,
    thanks a lot, both solutions work just fine.
    Take the first image, adjust the Effects, copy it, select the other images and past attributes
    and
    just put all images together, make a new sequence and use that first sequence as nested sequence and put the effects on that

  • How to overlay opaque rectangle with title

    Can't find this in FAQ or instructions, I must be using wrong search terms. I have a music video need to change title. Would like to overlay old title with white rectangle then type new title over that. How can I do this?
    Thanks

    Here are three steps to create a Blurred Shape Title and then add Text above that with a Text Title:
    Video with Date Stamp in lower-right
    Title w/ Shape, and color selected from the background Video via the Eyedropper in the Color Palette in the Titler.
    A Text Title with "Tim & Jill at the Park," added above the Blurred gray Shape.
    Hope that this helps,
    Hunt

  • How to do a link with  an image .gif

    Hi,
    in proprieties menu of a gif image, I checked the export for
    sharing execution box, and add an URL for google.com to see when
    i'll click on the image if it work! (That image is appearing only
    at the end of the flash animation). And everything stops when it's
    time for the image to appear. (after pushing F12). So no clickable
    zone... I hope u understand!!!
    But otherwize, how can I make an image to open a web page
    when we clic on?
    Thx in advance,
    Dave

    I found the answer on the forum and it's on(press){ getURL("
    http://www.mysite.com/anotherpage.htm/","_self")
    tkx

  • How to resize a window with out a mouse

    Hello
    There are times that I rather not use a mouse, my question is How do I resize a window or drag it to make it larger not using a mouse but using the touch-pad and keyboard.
    I usually put the mouse pointer in the bottom right hand conner of the window where the little white box and I hold down the left mouse button and drag it to the size I want.
    Thanks
    David
    Powermac G5 1.8SP 3 gig ram: ibook g4 1.2 gig ram   Mac OS X (10.4.4)  

    Make it extend Frame or JFrame and you get all that for nothing.

  • How to export branching scenario with clear images

    using Captivate 7.0 .
    when i export branching scenario, the images are very obscure. (window -->branching view)
    i tried sliding to zoom in and out. the images are not clear, and the texts and images cannot be read at all.
    when exporting, the images are naturally not clear.
    is there any way to make and export clear braching scenario?

    Hello,
    This seems more .NET issue so please confirm if you are suing above code in sharepoint or not.
    For you issue, you can first convert in HTMl then convert HTML to PDF to support all office versions.
    http://forums.asp.net/t/1920685.aspx?Export+grid+into+Powerpoint+2010
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to send HTML mail with images multipart/related message

    Hi,
    Could any body tell me how to send HTML mail with images in "multipart/related" message,if any body can give the code ,it would be helpful.
    Thanks

    Hi,
    Could any body tell me how to send HTML mail with
    ith images in "multipart/related" message,if any body
    can give the code ,it would be helpful.
    ThanksHi!
    Refer to
    http://developer.java.sun.com/developer/onlineTraining/JavaMail/index.html
    I've found it very helpful.
    Look at the last part for a code showing how to send HTML mail!
    Regards

  • Scale simple rectangle with .css on hover

    Good evening dear members,
    I uploaded you a sample project to illustrate the problem. (Dropbox - Example.zip)
    Over all I only want to resize a rectangle with a hover effect. However, the problem arises that the size of the rectangle with scale = 1 changes?!
    I create a rectangle "button" and give the "button" as mouseout-action the following code:
    var object = sym $ ("button").
    rescale = 1;
    object.css ('transform', 'scale (' + rescale + ')');
    object.css ('o-transform', 'scale (' + rescale + ')');
    object.css ('- ms-transform', 'scale (' + rescale + ')');
    object.css ('- webkit-transform', 'scale (' + rescale + ')');
    object.css ('- moz-transform', 'scale (' + rescale + ')');
    object.css ('- o-transform', 'scale (' + rescale + ')');
    object.css ('z-index', '1');
    I don´t understand why the rectangle is changing!
    Maybe you can explain it to me :-)
    Best regards and many thanks
    Marc

    It shouldn't get smaller, in fact at a value of 1, it should not change at all because 1 equates to 100% of the original.
    Change the value to a higher number, like 2, for example. Which says 'transform to 200% of the original'.
    var object = sym.$("button");
    rescale= 2;
    object.css({
                'transform': 'scale(' + rescale + ')',
                '-ms-transform': 'scale(' + rescale + ')',
                '-moz-transform': 'scale(' + rescale + ')',
                '-webkit-transform': 'scale(' + rescale + ')',
                '-o-transform': 'scale(' + rescale + ')',
                'z-index':'1'
    To get a better understanding of how the values work and there equivalents.
    - Select any element on your Stage;
    - Then toy with the Transform property (see capture);
    - as captured a transform at 167% equates to a value of 1.67
    hth
    Darrell

  • How to resize partition win2008

    how to resize partition win2008?

    how to resize partition win2008?
    I know it is a little bit late to reply. But, I still want to share my experiences with everyone here.
    Actually, I have ever also ahs the same issue and need to resize my C drive partition for installing a large game. But, the resizing process just unexpectedly fails at last in Disk Management. The “extend” function is unable to work.
    So, I have no choice but to take chances with some third party partition resizer recommended in many forums such as:
    GParted
    http://gparted.sourceforge.net/
    IM-Magic Partition Resizer Free
    http://www.resize-c.com/
    Active Partition Manager
    http://www.softpedia.com/get/System/Hard-Disk-Utils/Active-Partition-Manager.shtml
    All of them seem efficient. So, I just have tried them one by one and finally added wanted free space to my C drive successfully with the second free resizer. I even have found a video tutorial that teaches me how to resize my drive with
    this freeware in details:
    https://www.youtube.com/watch?v=6jCeT7CbsKk

Maybe you are looking for

  • Disk Repair Boot from OSX Disc...

    Have a bad issue: my iMac has been found (using disk verify) to be corrupt. It tells me to boot from the installation disc to repair. Only problem is my DVD SuperDrive is dead! How can I boot from a disc if the drive won't mount? I've used three othe

  • How can i delete my itunes account and all my data

    I am done with using smartphones and am in the process of removing myself from various online/digital sites. How do I wipe my iTunes account and erase all my information

  • Report to WebDynpro Abap

    Dear All there is a report with an ALV Output. The requirement is now to impelent this report as it is as Abap WebDynrpo. Can give some hints what is easiest way to convert it in a Abap WebDynrpo ? Reagrds sas

  • Error in Master data load because of ###

    Hello, I am getting an error in master data load. The problem is ####### symbols are encountered in few records. We have defined a formula to replace the ### with S in transfer structure. But still it does not replace the #### symbols and gives error

  • Error in SECATT - ATT 377 Control data is obsolete, rerecord (&1&2&3)

    Hello, I get an error while running a TCD REC secatt, in the log of the test configuration , there are red errors "ATT 377 Control data is obsolete, rerecord (&1&2&3)", although the secatt was sucessfully done (meaning i should get green light...). I