Rectangle resize ratio behavior

Has illustrator always resized rectangles, such that the ratio changes as you alter the size?
My hope was to resize a copy of a given rectangle so the distance between the top and the sides would remain the same. This is not the case.
(I just upgraded to illustrator CC and I feel as if I didn't have this problem in CS5, but perhaps I'm just misremembering this detail)

Select all, turn off align to pixel grid
If you made a new document and last chose the web as new document profile, then the align to pixel grid is turned on.  You can turn that off for any newly created items in any document by transform palette flyout >> Align new object toto pixel grid unchecked.

Similar Messages

  • Aspect Ratio Behavior - how to disable.

    I currently have a rectangle sprite with line border of 1px.
    Now when I resize it larger AS seems to be maintaining aspect ratio
    on its line width... I would like it to preserve the original
    thickness. Can someone point me in the right direction for
    controlling this behaviour?

    Set your graphics lineStyle width to 0, which will render the
    border as a hairline and will remain a hairline width regardless of
    the scale value of the rectangle.
    mySprite.graphics.lineStyle(0, ....);
    TS

  • Rectangle Resizing After recent CC 2014 Illustrator update.

    Just updated Illustrator 2014 CC and I can no longer size rectangles via selection tool. Here is the kicker - this is only with rectangles, circles & text boxes resize like normal. I have reset preferences, checked the bounding box & reset the bounding box - nothing has worked.

    Michelle,
    I am afraid you have come across the Live rectangle bug which is limited to the MAC versions starting with 10.7 and 10.8, but not 10.9 (Mavericks), see this thread linked to below.
    https://forums.adobe.com/thread/1595973
    So a switch to Mavericks with a reinstallation might be the way to solve it here and now.
    It is possible to Expand the Live Rectangles to get normal old fashioned rectangles.
    A way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

  • How do you make a rectangle resize with background image?

    I'm trying to add links (transparent rectangles) to a background image that is set with "scale to fit". However when it scales in needs to scale with my links. Can I have the rectangles scale with the background image? If not is there a better way of doing this?

    As I understand. correctly.  You want the rectangles that you have added over background image, (to which links are added) to be responsive in layout within the project, Am I correct ? If yes ! Muse does not implement "Responsive Layout" as defined by a hand coder. For more details refer to : Can you create responsive sites with Adobe Muse?

  • FireFox 5.0 maximizes (although it still is a single rectangle button in the upper left corner) shortly after I start it. I resize and go on. I have 64 bit Windows 7 Ultimate

    this started as soon as I upgraded to 5.0. at first I thought I clicked the icon but I don't have to touch anything. as soon as Firefox starts up completely, it goes to full screen. the window does not have the double rectangle maximized button, just the single rectangle resizable window buttoin

    To get it you need to hide the menu bar. To do that in the View menu select Toolbars, then click on the "Menu Bar" entry.
    If you need access to the menus you can press either Alt or F10 to temporarily display them.

  • Upload and Resize Image not inserting filename in database

    I have a form that I created using the insert record form wizard. One of the fields is a file field and my form enctype is set to multipart/form-data. I then used the upload and resize image behavior and set the parameters. When testing the form the file uploads to the correct directory but no entry is made into the database for that particular field. The other fields are entered into the database just fine. If it helps, here is the code generated before the  tag:
    <br />
    <br /><?php require_once('../../Connections/test.php'); ?>
    <br /><?php<br />// Load the common classes<br />require_once('../../includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('../../includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("../../");<br /><br />// Make unified connection variable<br />$conn_test = new KT_connection($test, $database_test);<br /><br />// Start trigger<br />$formValidation = new tNG_FormValidation();<br />$tNGs->prepareValidation($formValidation);<br />// End trigger<br /><br />//start Trigger_ImageUpload trigger<br />//remove this line if you want to edit the code by hand <br />function Trigger_ImageUpload(&$tNG) {<br />  $uploadObj = new tNG_ImageUpload($tNG);<br />  $uploadObj->setFormFieldName("picture");<br />  $uploadObj->setDbFieldName("picture");<br />  $uploadObj->setFolder("../images/");<br />  $uploadObj->setResize("true", 120, 0);<br />  $uploadObj->setMaxSize(1500);<br />  $uploadObj->setAllowedExtensions("gif, jpg, jpe, jpeg, png, bmp");<br />  $uploadObj->setRename("auto");<br />  return $uploadObj->Execute();<br />}<br />//end Trigger_ImageUpload trigger<br /><br />// Make an insert transaction instance<br />$ins_team = new tNG_insert($conn_test);<br />$tNGs->addTransaction($ins_team);<br />// Register triggers<br />$ins_team->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");<br />$ins_team->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);<br />$ins_team->registerTrigger("END", "Trigger_Default_Redirect", 99, "../team.php");<br />$ins_team->registerTrigger("AFTER", "Trigger_ImageUpload", 97);<br />// Add columns<br />$ins_team->setTable("team");<br />$ins_team->addColumn("id", "NUMERIC_TYPE", "POST", "id");<br />$ins_team->addColumn("sort", "NUMERIC_TYPE", "POST", "sort");<br />$ins_team->addColumn("name", "STRING_TYPE", "POST", "name");<br />$ins_team->addColumn("title", "STRING_TYPE", "POST", "title");<br />$ins_team->addColumn("description", "STRING_TYPE", "POST", "description");<br />$ins_team->addColumn("picture", "FILE_TYPE", "FILES", "picture");<br />$ins_team->setPrimaryKey("id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rsteam = $tNGs->getRecordset("team");<br />$row_rsteam = mysql_fetch_assoc($rsteam);<br />$totalRows_rsteam = mysql_num_rows($rsteam);<br />?>

    If the reason is about memory, warning message should be happened when upload the image, because "show thumbnail" means resize at second time, how come you failed to resize the picture that system let it upload succeed at the first time by the same resize process?
    upload procedure
    a.jpg: 2722x1814, 1.2mb
    upload condition: fixed width 330px, 1.5mb
    "upload and resize" a.jpg -> file upload -> "resize engine" -> passed (but not work and no warning message)
    "show thumbnail" a.jpg -> "resize engine" -> failed (not enough memory)
    it doesn't make sense.
    and you miss an important key point, I upload the same picture myself, and resize work, so I said it happened at random, and that's why I am so worried.

  • Anyone use JAI  yet? How do I resize JPEG?

    How do I resize a jpeg that someone has uploaded via a form before I save it to the server? It would already be in an input stream of some sort already.
    Thanks,
    Spack

    I just started reading the JAI docs, but I can think of at least one way to do it with JDK 1.3 code. I would start by creating an ImageIcon from your stream or creating an Image from the stream and feed it into an ImageIcon object. Not sure of exact code to accomplish converting a stream to an Image, although ImageIcon objects can be constructed with a byte array of image data. I understand that creating the ImageIcon will block until the Image is fully loaded, useful in preventing NullPointerExceptions that occur when you try to manipulate an incompletely loaded Image object. From there, try feeding the ImageIcon object and resizing height and width parameters to the following method.
    import javax.swing.*;
    import java.io.*;
    import java.awt.image.*;
    ImageIcon myImageIcon = new ImageIcon(
    bytesFromInputStream );
    myImageIcon = resizeImage( myImageIcon, maxWidth,
    maxHeight);
    // The width and height constraints are meant to indicate
    // maximum sizes for the resulting image in either aspect.
    // This method should retain the original aspect ratio of
    // the image; and its largest aspect will be held to the
    // appropriate provided aspect constraint (if the image
    // is wider than it is tall, it will still be wider than it is tall
    // when resized, only its width will be equal to the
    // widthConstraint value.
    private ImageIcon resizeImage( ImageIcon fromStream,
    int widthConstraint, int heightConstraint)
      int imgWidth = fromStream.getIconWidth();
      int imgHeight = fromStream.getIconHeight();
      ImageIcon adjustedImg;
      if ( imgWidth > widthConstraint | imgHeight >
       heightConstraint )
        if ( imgWidth > imgHeight )
          // Create a resizing ratio.
          double ratio = (double) imgWidth / (double)
           widthConstraint;
          int newHeight = (int) ( (double) imgHeight / ratio );
          // use Image.getScaledInstance( w, h,
          // constant), where constant is a constant
          // pulled from the Image class indicating how
          // process the image; smooth image, fast
          // processing, etc.
          adjustedImg = new ImageIcon(
           fromStream.getImage().getScaledInstance(
            widthConstraint, newHeight,
            Image.SCALE_SMOOTH )
        else
          // Create a resizing ratio.
          double ratio = (double) imgHeight / (double)
           heightConstraint;
          int newWidth = (int) ( (double) imgWidth / ratio );
          adjustedImg = new ImageIcon(
           image1.getImage().getScaledInstance( newWidth,
            heightConstraint, Image.SCALE_SMOOTH )
        // return the adjusted ImageIcon object.
        return adjustedImg;
      else
        // Assure the resources from the adjustedImg object
        // are released and then return the original ImageIcon
        // object if the submitted image's width and height
        // already fell within the given constraints.
        adjustedImg = null;
        return fromStream;   
    }From there, you can extract the Image object from myIconImage via myIconImage.getImage() and use that with whichever codec supports Image object conversion. I am pretty sure that the com.sun.image.codec.jpeg.JPEGCodec will do so (or somthing in that package can). Certainly JAI will have something from there.
    Good luck,
    Ryan

  • Image upload / resize in "Update Record" form?

    Hi
    I've created a form to add products to a database, it includes an image field using the "upload and resize image" behavior. This works fine.
    But now I'm building the uèpdate form and want to offer users the possibility of either retaining the current file, uploading a new image to the server (and delete/overwrite the previous one if it exists) or delete the current image without uploading a new one.
    how would i go about this?
    thanks.

    Hi Waleed,
    oops, yes, sorry, you´re right of course -- just didn´t read it too carefully :-)
    However, what Somaboy and Dave want, is a little different from what the tutorial explains at this point -- what´s explained there, will of course be deleting that image physically and erasing the file name entry from the table, but that won´t cover the requirement to additionally upload another picture from the same form.
    In this special case I *think* that one would have to perform both deletion processes as "before" triggers -- to make sure that the file as such plus the corresponding table entry are really gone before the upload procedure happens.
    If someone will ever find out a well-working strategy to get this
    (BTW very often asked for) requirement done, many folks here would certainly jump for joy -- also because that´s something you apparently can´t do without implementing a chain of at least custom triggers.
    But there´s also a much easier solution available to those folks who don´t want to bother with implementing custom triggers for this purpose alone :: this is how I´d do it:
    1. use what´s described in step 3 of the tutorial you posted to delete the physical file and the "filename" column entry
    2. pass the current recordset´s ID to the "redirect after update" page, and here...
    3. add a "SELECT file_column FROM table_name WHERE ID" matches the URL parameter ID - query in order to check if this column is empty or not -- and if it´s empty, execute an "upload and resize image" behavior on this page.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Little things keep breaking my pages.

    I'm using a template from Muse Themes (Vignette).
    When making minor updates, invariably I break the page. Let's compare.
    Here is a page as it looks on my desktop:
    Here is the same page published to BC:
    Annnnnd here is how it looks on Bluehost.
    Notes:
    Multiple browsers used, with histories and caches cleared - Chrome, Safari, Fox.
    Dark rectangle resized often so as to avoid "width=100%" trap. Also tried it at 100%. Obviously it should not be overlapping the text, nor should the text be reformatting to sidebar width.
    Behavior repeats itself in ALL possible FTP scenarios: Upload to FTP host > Modified files only, Upload to FTP host > All files, and Export to HTML and then upload with Cyberduck (and Overwrite).
    Waiting for server to recache yields nothing.
    Have used with Dreamhost and Bluehost, with CloudFlare on and CloudFlare off.
    Persistent resizing/moving of graphics is the ONLY thing that fixes the problem. The change is typically trivial, a few px one way or the other.
    Today, however, NOTHING is helping the situation. (UPDATE: I was able to resize the rectangle vertically and this solved the problem. If you're thinking this element was smaller than overlapping elements, it wasn't. I always extend this element until it "bumps," or slightly moves, the footer element.)
    This has gone on for months! I've scoured the Adobe forums countless times and tried countless fixes. And now my one ace-in-the-hole, tweaking graphics, is failing me.
    My renewal for Muse Themes is coming up, and I must know if I can continue to use Muse or should cut bait and redo the site in WP.
    Note to Adobe Support: I did send a zip file of my HTML this morning to muse-ts, from my address [email protected] Thanks.
    Message was edited by: Quindaro

    Hello,
    I'm Steve Harris from MuseThemes.com - thanks for notifying me of this problem through the MuseThemes support forum (http://support.musethemes.com).
    This looks like a classic case of "overlapping elements" causing weird layout shifts on publish.  I actually covered a similar issue in a blog post way back in October 2011 (link below, tip #3)
    http://www.muse-themes.com/blogs/news/4232972-top-5-adobe-muse-design-tips-and-tricks
    To summarize the blog post, what I would suggest is to try and group all of your elements in the Muse file.  We took a close look at the code Muse is generating, and it appears that grouping elements (select elements > right click > group) will actually wrap them in a "div" tag, which acts as a container to hold content together.  We've fixed countless situations like this by grouping together blocks of content (images & text) to keep them from shifting on export.
    As a customer of MuseThemes.com, our support team would be happy to have a look at your Muse working file to find a fix.  Feel free to send it our way in the MuseThemes support portal.
    Cheers,
    - Steve

  • JavaScript error occurred.

    Hi,
    I still have DW8, and CS3 also.
    When i try to add "Upload and Resize Image" behavior from DevToolbox, Vb.ASP, Im getting error like:
    "While executing applyServerBehavior in kd_ImageUploadResize.htm, a JavaScript error occurred."
    Tried to uninstall extension and again install it, also deleted: WinFileCache files... but still error is there?!
    What to do?!
    Thanks in advance

    <[email protected]> wrote in message <br />news:[email protected]..<br />> Hi,<br />> I still have DW8, and CS3 also.<br />><br />> When i try to add "Upload and Resize Image" behavior from DevToolbox, <br />> Vb.ASP, Im getting error like:<br />><br />> "While executing applyServerBehavior in kd_ImageUploadResize.htm, a <br />> JavaScript error occurred."<br />><br />> Tried to uninstall extension and again install it, also deleted: <br />> WinFileCache files... but still error is there?!<br />> What to do?!<br />><br />> Thanks in advance<br /><br />Can you see if your configuration folder contains the file IAKT.log ,<br />this file *may* contain more information as to which operation is failing.<br /><br />Joris van Lier

  • Inserting image in to database !!

    Hi All,
    I have to insert image in to the database. My image is there in swing object Image. Is there any way to insert that image in to the database.
    Any body having knowledge on this, Please help.
    Thanks in advance.
    Regards,
    Roja.

    Hi
    Take a look to this code I found surfing, it creates an image from url then resize it and return it as byte array that you can use to set a blob in the database:
    public static byte [] resizeImage(URL url,int widthConstraint,int heightConstraint) throws ImageFormatException, IOException
         ImageIcon imageIcon = new ImageIcon(url);
         Image img = imageIcon.getImage();
         int imgWidth = imageIcon.getIconWidth();
         int imgHeight = imageIcon.getIconHeight();
         ImageIcon adjustedImg=null;
         if ( imgWidth>0 && imgHeight>0)//imgWidth > widthConstraint | imgHeight >  heightConstraint )
         if ( imgWidth > imgHeight )
           // Create a resizing ratio.
           double ratio = (double) imgWidth / (double)
            widthConstraint;
           int newHeight = (int) ( (double) imgHeight / ratio );
           // use Image.getScaledInstance( w, h,
           // constant), where constant is a constant
           // pulled from the Image class indicating how
           // process the image; smooth image, fast
           // processing, etc.
           adjustedImg = new ImageIcon(
            imageIcon.getImage().getScaledInstance(
              widthConstraint, newHeight,
              Image.SCALE_SMOOTH )
         else
           // Create a resizing ratio.
           double ratio = (double) imgHeight / (double)
            heightConstraint;
           int newWidth = (int) ( (double) imgWidth / ratio );
           adjustedImg = new ImageIcon(
           imageIcon.getImage().getScaledInstance( newWidth,
              heightConstraint, Image.SCALE_SMOOTH )
         int resizeWidth = adjustedImg.getIconWidth();
         int resizeHeight = adjustedImg.getIconHeight();
         Panel p = new Panel();
         BufferedImage bi = new BufferedImage(resizeWidth, resizeHeight,
         BufferedImage.TYPE_INT_RGB);
         Graphics2D big = bi.createGraphics();
         big.drawImage(adjustedImg.getImage(), 0, 0, p);
         ByteArrayOutputStream os = new ByteArrayOutputStream();
         JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(os);
         encoder.encode(bi);
         byte[] byteArray = os.toByteArray();
         return byteArray;
      else
      return new byte[0];
       }hope this helps.

  • ImageView with transparency

    I have an ImageView which contains an Image that has transparency. The default behavior for ImageView is to not fire mouse events on parts of the image that are fully transparent. However, I want events on all pixels in the image, regardless of their opacity.
    Rectangle has this behavior by default, that is, if you create a Rectangle like this:
    var r = Rectangle {
    fill: Color.color(0,0,0,0);
    width: 136
    height: 19
    onMouseMoved: function(Void) {
    println("mouse moved");
    you'll see the printout even though the rectangle isn't visible.
    Is there any way to do the same for ImageView?
    -Ken

    You almost answered yourself: a possible workaround is to put a transparent rectangle over the ImageView and let it handle the events.
    Maybe there is something simpler or more elegant, but hey, if nobody else has a suggestion... :-)

  • Unable to chance BG image need help - link attached.

    Using a template, I want to replace the George Washington image that is there with a bird image and have it be just as long, in other words turn my bird image into a mask as of right now when I enlarge, it gets big, and can make it large horizontally.
    Here is the link and I want the bird to be the same size as the George Washing image.
    http://img67.imageshack.us/my.php?image=needhelppagessl2.gif
    Thanks!

    First, for your "constrain" problem, uncheck Constrain Proportions in the metrics inspector. You can then drag a side handle to stretch the image. Like this:
    For masking, insert your image then insert a square/rectangle & resize it to what you want. Now move the rectangle on top of your image, shift-click to select the image (in addition the rectangle) then select Format > Mask with selected shape.
    Now I can move Muffin around in the mask

  • Problem with Nested tell blocks in Applescript

    Hello everyone,
    I've been trying to do a little Applescript, whose purpose is to open a file selector to let the user choose a bunch of images, then prompt him to ask a resizing ratio, and then resize the chosen pictures accordingly (after duplicating the originals in a folder on the desktop, the copied files being the ones resized).
    I'm having problems with the resizing part... Here is the code I've come up with so far... "Image traitées" is the name of the new folder created on the desktop, and "compression" is the factor in %.
         -- Resizing 
         tell application "Finder"
              repeat with photo in folder "Images traitées" of desktop
                   tell application "Image Events"
                        launch
                        scale photo by factor compression * 0.01
                   end tell
              end repeat 
         end tell
    I'm encountering an error number -1708, saying that the 'photo' item doesn't understand the scale message...
    As I'm new to Applescript, I have some difficulties solving this... Could it be due to the nested tell blocks ?
    Thanks a lot for your help !
    Thomas

    Your tell statements are OK, although when nesting them you do need to keep track of what application is getting targeted in any given statement (to avoid terminology conflicts).
    Each application refers to its objects in its own way - unfortunately, not everything knows about Finder references.  Your photo variable contains a Finder reference (e.g. "file x of folder y of disk z"), but Image Events doesn't know what that is.  The solution is to convert the Finder reference to something more standard, such as text or an alias.
    Your script won't work with just that change, however.  Image Events works with the image contained in a file, so you also need to actually get that image, for example:
    set compression to 80 -- used in the following snippet
    tell application "Image Events" to launch -- just need to do this once
    tell application "Finder"
         repeat with photo in folder "Images traitées" of desktop
              tell application "Image Events"
                   set theImage to open (photo as alias) -- get the image from the Finder reference
                   scale theImage by factor compression * 0.01
                   save theImage -- save the changed image
              end tell
         end repeat
    end tell

  • Premier Pro CS4 interface problem

    When working in PPro CS4, i encounter this problem. When i click in the Program: Sequence 01 window the video image from the video on the time line, turns from showing the video image to just showing the white rectangle resize box. This makes it very frustrating trying to guesstimae how the video is resizing. My mac is running OSx 10.7.5 with 2.8 ghz i7 chip. here are some images to show what I mean.
    The video image showing. Time line clicked.
    The white rectangle that appears without video image when I go to resize the video image.
    Any ideas on what I can do to get the video image displaying correctly greatly appreciated. My Mac at work displays this correctly, but as yet have not worked out what is different in settings.
    Thank you in advance.

    Wrong forum... you need http://forums.adobe.com/community/premiere/premierepro_previous?view=all

Maybe you are looking for

  • PLS-00103: Encountered the symbol "" when expecting one of the following:

    Hi I am creating trigger using CFQUERY tag of cold fusion on oracle.. <CFQUERY DATASOURCE="CRM"> create or replace trigger AWC_ACCESSROLESID_TRI before insert on AWC_ACCESSROLES for each row begin select AWC_ACCESSROLESID_SEQ.nextval into :new.AR_ID

  • Bios recovery - Computer will not boot up

    I have a HP Pavilion HPE H8-1145-SC, my bios will not boot. I was wondering if there are any ways of changing the jumper setting on the motherboard ( IPISB-CH2) to fix this issue if so how do I do it? or are there any other types of recoveries that I

  • Serial number is invalid for Adobe Acrobat Pro 9 within CS4

    Hi, I purchased Adobe CS4 Creative Suite Design Standard. Upon installing the four programs it contains (InDesign, Illustrator, Photoshop and Adobe Acrobat Pro) I keyed in the serial number and InDesign, Illustrator and Photoshop worked fine, but Ado

  • What is the best option for my process

    Hi Gurus Can any one guide me which is the best available option for my business process. in our client process We have a Final Product(say A). and two Vendors (say Vendor1 and vendor2) This Final Product is made up of 3 other parts Lets say B,C and

  • Every time I open After Effects CC 2014 I get an error message "Out of Memory. ( 23 :: 40 )"

    I don't even have a project open when it pops up. I have tried updating, un-installing and re-installing, restarting my computer, and clearing my cache files. Any help? I am using a Macbook Pro with 10.10.2 installed. 2.2 GHz Intel Core i7, 16 GB of