Resizing images to a scale

hi all,
i have a bit of an annoying issue where i would like to print raster (image) drawings out to some /scale/.
a good example would be a set of elevations and a plan that was scanned from a book but are basically /each/ in my computer as individual files at unknown scales.
so i would like to
1. RESIZE these drawings so they are all at the same scale and then
2. i would like to resize them again so that i can print them to PDF (or whatever) and send them to a printer to have them print out at something like 1/8" = 1'-0".
i have adobe photoshop suite of tools on the mac but posting to adobe forums has not yielded results.
is there some slick mac program that will do this??
if not, which mac development team do i explain this need so they can implement it?
is there a good forum to post this question to?
THANKS

The OP's last post was from 2 years ago, so I wouldn't expect him/her to reply :-)
However, if the problem is that you want to get notified while the frame is resizing, and not just after it has been resized, you can do this by setting the DynamicLayout property in java.awt.Toolkit to true, like this small test program demonstrates:
import java.awt.Toolkit;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import javax.swing.JFrame;
import javax.swing.JLabel;
public class ResizeTest extends JFrame {
    public ResizeTest() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JLabel lbl = new JLabel("Label");
        getContentPane().add(lbl);
        pack();
        setLocationRelativeTo(null);
        lbl.addComponentListener(new ComponentAdapter() {
            public void componentResized(ComponentEvent e) {
                // Print to the console everytime the label is resized:
                System.out.println("componentResized");
    public static void main(String[] args) {
        // Set DynamicLayout to true:
        Toolkit.getDefaultToolkit().setDynamicLayout(true);
        new ResizeTest().setVisible(true);
}Note this sentence from the javadocs for the setDynamicLayout method though:
"Note that this feature is not supported on all platforms, and conversely, that this feature cannot be turned off on some platforms."

Similar Messages

  • How to resize Image Jpeg ?

    I have a problem when I scale file image Jjpeg.
    My code :
    public void resize(Image img){
    BufferredImage bimg = toBufferedImage(img);
    AffineTransform tx = new AffineTransform();
    tx.scale(125,125);
    AffineTransformOp op = new AffineTransformOp (tx,AffineTransformOp.TYPE_BILINEAR)
    bimg = op.filter(bimg, null);
    public static BufferedImage toBufferedImage(Image image) {
    if (image instanceof BufferedImage) {
    return (BufferedImage)image;
    // Determine if the image has transparent pixels; for this method's
    // implementation, see e661 Determining If an Image Has Transparent Pixels
    boolean hasAlpha = hasAlpha(image);
    // Create a buffered image with a format that's compatible with the screen
    BufferedImage bimage = null;
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    try {
    // Determine the type of transparency of the new buffered image
    int transparency = Transparency.OPAQUE;
    if (hasAlpha) {
    transparency = Transparency.BITMASK;
    // Create the buffered image
    GraphicsDevice gs = ge.getDefaultScreenDevice();
    GraphicsConfiguration gc = gs.getDefaultConfiguration();
    bimage = gc.createCompatibleImage(
    image.getWidth(null), image.getHeight(null), transparency);
    } catch (HeadlessException e) {
    // The system does not have a screen
    if (bimage == null) {
    // Create a buffered image using the default color model
    int type = BufferedImage.TYPE_INT_RGB;
    if (hasAlpha) {
    type = BufferedImage.TYPE_INT_ARGB;
    bimage = new BufferedImage(image.getWidth(null), image.getHeight(null), type);
    // Copy image to buffered image
    Graphics g = bimage.createGraphics();
    // Paint the image onto the buffered image
    g.drawImage(image, 0, 0, null);
    g.dispose();
    return bimage;
    }

    This is my code :
    private ImageIcon getImageIcon(String path){
    ImageIcon iIcon = new ImageIcon(path);
    if(iIcon.getIconHeight() > 125 || iIcon.getIconWidth() > 125){
    Image img = iIcon.getImage();
    int iw = img.getHeight(null);
    int ih = img.getWidth(null);
    BufferedImage bImage1 = toBufferedImage(img);
    BufferedImage bImage2 = new BufferedImage(400,400,1);
    AffineTransform tx = new AffineTransform();
    tx.scale(400,400);
    AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
    BufferedImage bImage3 = op.filter(bImage1, bImage2);
    img = Toolkit.getDefaultToolkit().createImage(bImage2.getSource());
    return (new ImageIcon(img));
    if(iIcon == null)
    return null;
    return iIcon;
    public static BufferedImage toBufferedImage(Image image) {
    if (image instanceof BufferedImage) {
    return (BufferedImage)image;
    // Determine if the image has transparent pixels; for this method's
    // implementation, see e661 Determining If an Image Has Transparent Pixels
    boolean hasAlpha = hasAlpha(image);
    // Create a buffered image with a format that's compatible with the screen
    BufferedImage bimage = null;
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    try {
    // Determine the type of transparency of the new buffered image
    int transparency = Transparency.OPAQUE;
    if (hasAlpha) {
    transparency = Transparency.BITMASK;
    // Create the buffered image
    GraphicsDevice gs = ge.getDefaultScreenDevice();
    GraphicsConfiguration gc = gs.getDefaultConfiguration();
    bimage = gc.createCompatibleImage(
    image.getWidth(null), image.getHeight(null), transparency);
    } catch (HeadlessException e) {
    // The system does not have a screen
    if (bimage == null) {
    // Create a buffered image using the default color model
    int type = BufferedImage.TYPE_INT_RGB;
    if (hasAlpha) {
    type = BufferedImage.TYPE_INT_ARGB;
    bimage = new BufferedImage(image.getWidth(null), image.getHeight(null), type);
    // Copy image to buffered image
    Graphics g = bimage.createGraphics();
    // Paint the image onto the buffered image
    g.drawImage(image, 0, 0, null);
    g.dispose();
    return bimage;
    When I recieve Img3 which is not same original Image (img1)
    Please help me ?

  • How to proper resize images and videos at runtime without losing quality?

    Hi guys. I need a bit of help here.
    I've built a flash site in which i want to resize a movie to the stage. I do it by keeping the proportion, thus i only resize the width and then i resize the height acordingly to the new width but keeping the proportion.
    The problem is that my film still looks "pixeled".
    I found a website on which the stage resizes dinamically with the movie and the background images without either of them losing quality. Till now i knew that resizing images or videos in flash at authoring or runtime produces pixeled results.
    This is the website: http://kampanjeweb.apt.no/jotun/romforrom/. Can someone tell me how do they do it without losing quality? just make the browser windowed and resize the margins to see the effect.
    Thanks.

    Hello, Venian.
    About the video, you could try setting the flash.media.Video's smoothing property to TRUE. This should keep a quality, but you can do nothing if the video has a poor quality. You need a great video.
    About the images, you you need to redraw the image each time you resize it. To achieve it, use a combination of Bitmap, BitmapData and Matrix classes. Any doubt, just call again. Here is a simple example:
    var scale:Number = .5;
    var highQualitySourceImage:Bitmap = ...your image...;
    var scaleMatrix:Matrix = new Matrix();
         scaleMatrix.scale(scale, scale);
    var bitmapData:BitmapData = new BitmapData( scale*highQualitySourceImage.width, scale*highQualitySourceImage.height);
         bitmapData.draw(highQualitySourceImage, scaleMatrix);
    var finalBitmap:Bitmap = new Bitmap(bitmapData);
    addChild( finalBitmap );
    Cheers,
    CaioToOn!

  • Preview changes RGB values when resizing images

    Since I upgraded to snow leopard, preview increases the Red spectrum when resizing images (png). Is this a bug or do I need to change a setting to preserve the original RGB values?

    Figured it out. It seems that when you don't specify the BufferedImage that the operation will write too it changes the type to something it uses for the operation. This still seems like it should be a bug to me, but i got around it by doing this:
    BufferedImage tempIMG = new BufferedImage((int)(srcImg.getWidth()*scale),(int)(srcImg.getHeight()*scale),srcImg.getType());
    op.filter(srcImg, tempIMG);
    return tempIMG.

  • AppleScript to resize images and save with new name

    I want to make an apple script, which resizes all images of a folder regardless what kind of filetype.
    The source folder will change every day.
    With the script i want to choose a source Folder, resize all images and save the files with my jpeg options in the same folder, but with adding  „_ipad“ in the filename.
    I tried to edit an existing script from this forum, but in Photoshop 5.1 i get the error-message "This function is possibly not available in this Version" in line 18 "save in file newFileName as JPEG with options myOptions"
    How can i save the documents with new name in the existing folder?
    Thanks.
    This is the script i’m working with:
    set inputFolder to choose folder with prompt "Wähle einen Ordner:"
    --set destinationFolder to choose folder with prompt "Wähle einen Zielordner" as string
    tell application "Finder"
              set filesList to (files of entire contents of inputFolder) as alias list
    end tell
    tell application "Adobe Photoshop CS5.1"
              set UserPrefs to properties of settings
              set ruler units of settings to pixel units
              repeat with aFile in filesList
      open aFile showing dialogs never
                        set docRef to the current document
                        tell docRef
                                  set newFileName to my getBaseName(name)
      --resize image height 240 resolution 72 resample method bicubic sharper
      change mode to RGB
      resize image resolution 72
                                  set myOptions to {class:JPEG save options, embed color profile:true, quality:12, format options:progressive, scans:3}
      save in file newFileName as JPEG with options myOptions
                        end tell
      close the current document saving no
              end repeat
              set ruler units of settings to ruler units of UserPrefs
    end tell
    on getBaseName(fName)
              set baseName to fName
              repeat with idx from 1 to (length of fName)
                        if (item idx of fName = ".") then
                                  set baseName to (items 1 thru (idx - 1) of fName) as string
                                  exit repeat
                        end if
              end repeat
              return baseName
    end getBaseName

    This seems like a Photoshop error not an AppleScript one. Have you looked in the Photoshop dictionary to see if the command you are getting the error on exists and if it has those options?
    If all you want to do is resize image files and save the resized image file you might want to look at Automator. Specifically the Scale Image action under Photos.
    regards

  • Holding SHIFT to resize image in PROPORTION not working - InDesign CC

    Hello,
    I am putting a portfolio together containing a ton of images.
    I constantly use the SHIFT to resize images in proportion constantly, but it is not work.  It resizes randomly wherever my curser goes.
    It works in Photoshop CC and Illustrator CC
    I have uninstalled InDesign (uninstalled preferences too), then re-installed with no result.
    Using the Scale tool (by pressing S) still does not work
    I have been using the manual SCALE with percentages or using the "fit content proportionally" buttons on the toolbar, which is killing my workflow, as I need fine grain control
    I may have typed something out while thinking I was in a text box, when I was not.  This may have turned on or turned off the feature.  I'm not sure how to bring it back now.
    Any help would be appreciated
    Casey

    Which tool are you using, and which platform?
    I use the selection tool, myself, and for that you need to press BOTH Ctrl (PC)/Cmd (Mac) and Shift before dragging to scale proportionally. On windows you must press the keys before clicking the mouse.
    How did you replace the preferences? Directions to do it properly are at Replace Your Preferences

  • Can't resize image to 16x20

    I'm trying to resize a RAW image to a 16x20.  I unchecked "resample image" and have "Constrain Styles" and "Scale Proportions" on in the Resize Image window.  I typed in 20 for the height and the width automatically filled in as 13.278.  I tried filling in the width as 16 and the height automatically filled in to 24.04.  I need to get this image resized to 16x20 and I can't figure out what I'm doing wrong! 
    Extra Info:  I have the "resample image" box unchecked because this image is going to be a canvas.  I'm new to the whole resizing images, canvases thing, so any help would be greatly appreciated!  I need to get this done today.
    I have Adobe Photoshop Elements 8.
    Any help would be GREATLY appreciated!

    I've got the same problem and don't know how to solve it !
    Did anybody already write something about that ?
    Could we get some source codes or links ?
    Thank's a lot
    Nicolas

  • Bitshift when resizing image

    I found the following code on http://developers.sun.com/techtopics/mobility/reference/techart/design_guidelines/image_resizing.html, and it works great for resizing an image.
    In an effort to fully understand what is going on, can someone please explain to me what the bitshift that occurs below do. I understand what happens in a bitshift, but I do not know why the author used a left shift of 16 to establish the ratio for the width and height. Is there something significant about a left shift of 16?
      * This methog resizes an image by resampling its pixels
      * @param src The image to be resized
      * @return The resized image
      private Image resizeImage(Image src) {
          int srcWidth = src.getWidth();
          int srcHeight = src.getHeight();
          Image tmp = Image.createImage(screenWidth, srcHeight);
          Graphics g = tmp.getGraphics();
          int ratio = (srcWidth << 16) / screenWidth;
          int pos = ratio/2;
          //Horizontal Resize       
          for (int x = 0; x < screenWidth; x++) {
              g.setClip(x, 0, 1, srcHeight);
              g.drawImage(src, x - (pos >> 16), 0, Graphics.LEFT | Graphics.TOP);
              pos += ratio;
          Image resizedImage = Image.createImage(screenWidth, screenHeight);
          g = resizedImage.getGraphics();
          ratio = (srcHeight << 16) / screenHeight;
          pos = ratio/2;       
          //Vertical resize
          for (int y = 0; y < screenHeight; y++) {
              g.setClip(0, y, screenWidth, 1);
              g.drawImage(tmp, 0, y - (pos >> 16), Graphics.LEFT | Graphics.TOP);
              pos += ratio;
          return resizedImage;
      }//resize image   

    There are so many things this could be, would help if you post a screenshot, and you get a better response on these forums.
    Are you using a thin font? 30 pixels is not very much, and you often want to thicken up a font so you get atleast 1 pixel. Try a different aliasing setting?
    Do you have any layer effects, you can use layer >> layer Style >> scale effects

  • How can I improve the quality of resized images ?

    Hello,
    I've written a program for batch resizing Jpegs which is working fairly funky however the quality of the resized images could be a bit better. Is there any way of doing a smoother resize of the images ? I'm currently using:
    AffineTransformOp op = new AffineTransformOp(AffineTransform.getScaleInstance(scaleX, scaleY), null);
    theImage = op.filter(theImage, null);
    Also I'm having trouble with some Jpegs taken with my friends digital camera. When I resize the vertical (480*640) ones the colours get all messed up while the horizontal (640*480) ones turn out fine. This only happens with Jpegs from his camera ! The colour scrambling looks very similar to what I was getting with all Jpegs when I used the below code to resize images:
    AffineTransform scaler = new AffineTransform();
    scaler.scale(scaleX, scaleY);
    AffineTransformOp scalerOp = new AffineTransformOp(scaler, AffineTransformOp.TYPE_BILINEAR);
    theImage = scalerOp.filter(theImage, null);

    See bug: 4712797

  • When I resize image, The image lose thier shape & align.

    illustrator cs6
    OS : windows 7 32 bit
    CPU : interl(R) Xeon(R) CPU E5462 @ 2.80GHz 2.79GHz
    Memory : 4Gb
    VGM :  ATI Radeon HD 2600 XT 256 MB
    when I resize image, I press shift & alt button.
    and all image were outline stroked.

    it means
    edit -> preferences -> general
        -> uncheck the Scale Storkes & Effects
    windows -> transform -> (show options)
        -> uncheck the Align to Pixel Grid
    thanks larry.

  • How do I resize image?

    How do I resize image from 720 to 1080 in after effects?

    Have you tried using the Scale property? Click the arrow to the left of a layer's name to expand its properties. Alternatively you can click on the layer in the timeline and press the "s" key to expand the Scale property for that layer. By default, scaling retains the original proportions; if you wish to disable this and scale something out or proportion then uncheck the little "constrain proportions" icon in the Scale property.
    An even easier way is to simply click on a layer in the composition view and drag the small boxes at the edges of the layer.

  • Which approach to use for resizing image

    There are two ways of resizing images as I know:
    1. image.getScaledInstance(width,height,hint);
    Using hint like Image.SCALE_AREA_AVERAGING gives somehwat satisfactory resizing.
    2. static BufferedImage resize(GraphicsConfiguration gc, BufferedImage source, int w, int h, Object hintValue) {
    BufferedImage result = gc.createCompatibleImage(w, h, source.getTransparency());
    Graphics2D g2 = result.createGraphics();
    g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, hintValue);
    double sx = (double) w / source.getWidth(), sy = (double) h / source.getHeight();
    g2.drawRenderedImage(source, AffineTransform.getScaleInstance(sx, sy));
    g2.dispose();
    return result;
    where the hint passed is RenderingHints.VALUE_INTERPOLATION_BILINEAR ;
    Now which of the two method method should I use-using image.getScaledInstance() or using AffineTranform ? opr is there any other way which is faster but provides good result?
    i am creating an image editor, so the GUI dialog will have oprtion to choose the algorithm. I want the method which provides better result yet faster.
    Tanveer

    http://forum.java.sun.com/thread.jsp?forum=20&thread=522483

  • Need help on quality of resized image!!

    I am required to resize images to max 1240pixel (longest dimension) as a submission of work, though when work is viewed it will be at 30"x40".  Can not figure out a way to do this where images don't become quite pixelated when viewed at larger size.   Appreciate any suggestions. 

    Is there some software to verify if my graphics card is shotty?
    Techtool Pro has some testing, the AHT tests VRAM, but game benchmarks and stressing will tell you the most.
    Is re-seating the graphics card or memory worth trying?
    Absolutely. Just don't reinstall the graphics card until you clean it thoroughly.
    Cleaning the dust out of my machine?
    YES. A dust filled graphics card heatsink will cause the GPU to cook, and cause problems thet you describe.
    If I need a new graphics card, what are my options? Do I have to purchase it via Apple store? I would like to stick with an Nvidia card so am I stuck buying the same card I currently have or can I upgrade?
    You don't have to buy from Apple, but using with OS X limits your choices to Mac compatible or flashable PC versions.
    There is an awful lot of user input into this topic here:
    http://blog.macsales.com/602-testing-those-new-graphics-cards
    Card reviews can also help:
    http://www.anandtech.com/video/showdoc.aspx?i=3140&p=9
    http://www.tomshardware.com/reviews/radeon-hd-4870,1964.html

  • I need some help resizing my images on PS6. I am using a mac and have been trying to resize with same resolution and constaining proportions but for some reaseon the smaller resized image appears pizelated.

    I need some help resizing my images on PS6. I am using a mac and have been trying to resize with same resolution and constaining proportions but for some reaseon the smaller resized image appears pizelated. Heres an image of before and after. The first image I use is a JPG 72dpi 1500px x1500px and I want to downsize it to 600x600px same res, but it keeps pixelating, this has never happened before. Any suggestions, thoughts?
    thanks!

    I wouldn't say pixelated; more like blurry.
    Like ConnectedCreative said, what steps are you using? Are you using "bicubic sharper" when resizing down?

  • 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.

Maybe you are looking for

  • Online college, open document, how to find URL associated with document

    I am currently enrolled in an online college.  For APA formatting, we are supposed to find the URL associated with an online document.  For example:  on the college website I click on a link that takes me to the open/save box.  I open the file, at th

  • How to pass parameter /1BCDWB/DOCPARAMS from webdynpro?

    Hi Experts, We create a wdp view and indert an adobe form into it. And this form has an interface based on XML schema. Now we want to translate this form into multi-language, and in wdp side, we will display diffenent language version of form for dif

  • Set trip currency according to personnel area

    We have a consolidated worldwide operations into one company code (in the US) but this company holds many employees who reside in other countries. We have set up a personnel area for each country, although all are assigned to the US01 company code. T

  • Unable to Set-Up Gmail Account in 'Messages'

    Everytime I try to set-up my gmail account in 'Messages' I get an error.  I have cleared the cache and even reset my gmail password and it still won't let me add my gmail account to my 'Messages' tab.  I have followed the 'How to guide' and not still

  • Append text in JTextArea

    greetings.. i'm having the following code: public class GUI extends JPanel implements ActionListener   JTextArea theText;   public GUI()      // and so on and so forth that initializes the textarea       displayToTextArea("call from inside"); public