Image Coordinates and Scaling

Hi,
I'm creating and saving a BufferedImage with width and height 765. I'm then applying an scale AffineTransform of 3 on each axis.
Then I'm attempting to draw a rectangle with x1, y1, coordiantes of 3, which scales to 9, and x2, y2 coordinates of 252, which scales to 756. However, the rectangle always seems to overlap the bottom right corner of the image and I have no idea why. Here is the code i'm using:
public class SaveImage{
     //constructor
     public SaveImage() {
          //Load the variable
          // Create an image to save
         RenderedImage rendImage = myCreateImage();
         // Write generated image to a file
         try {
             // Save as JPEG
             File file = new File("thisTime.jpg");
             ImageIO.write(rendImage, "jpg", file);
         } catch (IOException e) {
    // Returns a generated image.
    public static RenderedImage myCreateImage() {
        int imageWidth = 765;
        int imageHeight = 765;
        // Create a buffered image in which to draw
        BufferedImage bufferedImage = new BufferedImage(imageWidth, imageHeight, BufferedImage.TYPE_INT_RGB);
        // Create a graphics contents on the buffered image
        Graphics2D gr2D = bufferedImage.createGraphics();
        //Scaling to the appropriate size
        AffineTransform transformer = new AffineTransform();
         transformer.scale(3, 3);
         gr2D.setTransform(transformer);
        //A rectangle to give a white background
        gr2D.setColor(Color.white);
        gr2D.fillRect(0, 0, imageWidth, imageHeight);
        gr2D.setColor(Color.black);
        Rectangle2D rectangle = new Rectangle2D.Float(3, 3, 252, 252);
        gr2D.fill(rectangle);
        return bufferedImage;
}Does anyone have any suggestions as to what I might be doing wrong?

Check out this thread, the discussion there may answer your question.
{color:#0000ff}http://forum.java.sun.com/thread.jspa?threadID=5276109{color}
luck, db

Similar Messages

  • Exporting image coordinates and size

    I'd like to be able to export image position and percentage size for all pictures in a document (the purpose is to import this information into a database to facilitate autocreation of the douments later on), I've done this before for Quark files by processing the report files but InDesign doesn't have this information. I'm working with InDesign CS5 on OSX and have very little experience of AppleScript - I've had quite a good browse around but to no avail, any help would be greatly appreciated.

    Generating a report for images has been done hundreds of times before But of course, never exactly the way you want it to.
    This Javascript is based on one I wrote for a similar request; it only needed minor tinkering to fit your purpose.
    app.activeDocument.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;
    list = [];
    imgs = app.activeDocument.allGraphics;
    unitname = getCurrentUnit();
    for (i=0; i<imgs.length; i++)
    h = imgs[i].parent.geometricBounds[2] - imgs[i].parent.geometricBounds[0];
    w = imgs[i].parent.geometricBounds[3] - imgs[i].parent.geometricBounds[1];
    left = imgs[i].parent.geometricBounds[1];
    top = imgs[i].parent.geometricBounds[0];
    scale = roundMe(imgs[i].horizontalScale,1);
    // some fair rounding
    switch (unitname)
      case 'in':
       w = roundMe(w, 3);
       h = roundMe(h, 3);
       left = roundMe(left, 3);
       top = roundMe(top, 3);
       break;
      case 'cm':
       w = roundMe(w, 2);
       h = roundMe(h, 2);
       left = roundMe(left, 2);
       top = roundMe(top, 2);
       break;
      default:
       w = roundMe(w, 1);
       h = roundMe(h, 1);
       left = roundMe(left, 1);
       top = roundMe(top, 1);
    list.push (imgs[i].itemLink.name+'\t'+'('+left+','+top+')'+'\t'+w+' x '+h+' '+unitname+'\t'+scale+'%');
    // alert (list.join('\r')); exit();
    defaultFile = new File (Folder.myDocuments+"/"+app.activeDocument.name.replace(/\.indd$/i, '')+".txt");
    if (File.fs == "Windows")
    writeFile = defaultFile.saveDlg( 'Save report', "Plain text file:*.txt;All files:*.*" );
    else
    writeFile = defaultFile.saveDlg( 'Save report');
    if (writeFile != null)
    if (writeFile.open("w"))
      writeFile.encoding = "utf8";
      writeFile.write (list.join("\r")+"\r");
      writeFile.close();
    function roundMe(val,to)
    var t = 1;
    while (to-- > 0) t *= 10;
    return Math.round(val*t)/t;
    function getCurrentUnit ()
    switch (app.activeDocument.viewPreferences.horizontalMeasurementUnits)
      case MeasurementUnits.POINTS: return "pt";
      case MeasurementUnits.PICAS: return "pt";
      case MeasurementUnits.INCHES: return "in";
      case MeasurementUnits.INCHES_DECIMAL: return "in";
      case MeasurementUnits.MILLIMETERS: return "mm";
      case MeasurementUnits.CENTIMETERS: return "cm";
      case MeasurementUnits.CICEROS: return "c";
      case MeasurementUnits.AGATES: return "ag";
      default: alert ("Oh, come on!"); exit(0);

  • Images and XML forms and Images and scaling

    Hello,
    I have two questions about using images in XML forms.
    1) How do I insert images into the XML form editor.
    The thread HTML Editor in XML Form? (Posted: Aug 26, 2004 7:50 PM), discuss how the HTML Editor in XML forms can be extended to be able to insert images like in the KM editor.
    Has anyone any practical experience with this?, as the thread is fairly old.
    And is there other solutions which are more suited?
    The portal is running on WAS 6.40, EP 6.0 SP11
    2) Is is possible for the portal to scale images
    In the portal, different users will use XML forms to publish news stories. These users will want to publish images along with the text.
    In many content management systems, the system will automatically scale the images (e.g. create one thumbnail, a mid-size image and keep the full size) Can this be achieved in the portal.
    The reason for this is to make sure that no one can post a very large image and to make sure each image is the same size.
    I'm interested in hearing how other people, solve the issue with uploading and scaling of images used in the portal.
    Kind regard,
    Jørgen Ruud
    Will reward SDN points.

    Hi Sumit,
    Just to add to what Duncan had said ... please ensure the following things as well
    1. Access portal using FQDN
    2. Maintain proper browser settings http://wiki.sdn.sap.com/wiki/display/EP/MSIE6BrowserSettingsforaccessingSAP+Portals
    3. Please go through the forum link http://forums.sdn.sap.com/thread.jspa?threadID=1814082
    Regards,
    Mahesh

  • s:BitmapImage get image scaled size and position after it loaded and scaled

    I am try to know the dimensions of the uploaded image into <s:BitmapImage without success.
    The data coming back to me are isthe real image size and not size after it was scaled to fit the component size.
    I can see that the image scaled down and fit to the maxWidth, but I can't get the actual/real scaled width from the BitmapIMage properties.
    I tried:
    <s:BitmapImage id="mainBitMap"  ready="mainBitMap_readyHandler(event)" complete="bitmapimage1_completeHandler(event)" source="{data.Thumbnail.URL}" maxHeight="250" maxWidth="250" scaleMode="letterbox"/>
      protected function bitmapimage1_completeHandler(event:Event):void{ 
    trace("----------------------Start-----------------------"); 
    trace("mainBitMap.bitmapData.width" + mainBitMap.bitmapData.width); 
    trace("mainBitMap.width" + mainBitMap.width); 
    trace("mainBitMap.measuredWidth" + mainBitMap.measuredWidth); 
    trace("mainBitMap.displayObject.width" + mainBitMap.displayObject.width); 
    trace("mainBitMap.explicitWidth.width" + mainBitMap.explicitWidth); 
    trace("mainBitMap.preliminaryWidth" + mainBitMap.preliminaryWidth); 
    trace("mainBitMap.sourceWidth" + mainBitMap.sourceWidth); 
    trace("-----------------------End------------------------");
    Result:
    ----------------------Start-----------------------
    mainBitMap.bitmapData.width=435
    mainBitMap.width=0
    mainBitMap.measuredWidth=0
    mainBitMap.displayObject.width=0
    mainBitMap.explicitWidth.width=NaN
    mainBitMap.preliminaryWidth=NaN
    mainBitMap.displayObject.preliminaryWidth=435
    -----------------------End------------------------
    Thanks,
    Nimrod.

    Hi,
    I tried the ready event, But I still receive the same results.
    I expect to get the new scaled width And height according to the maxHeight and MaxWidth.
    I see that the image scaled to fi it But I can't recive the new size of it.
    Thanks,
    Nimrod

  • Multiplying image to coordinates and rotation

    Hi,
    I was wondering if anyone could help me write a Adobe Illustrator script.
    The script must be able to:
    1. Read a file containing several coordinates (X,Y) and angles.
    2. Select an image (or load an image).
    3. Copy and paste an image to the coordinates and rotate the images by the given angles.
    4. Repeat pasting/rotating until all coordinates are pasted with images.
    The result should be something like the image attached below.
    Can this be possible with an illustrator script?
    Could anyone guide me how I should approach this?
    Could you recommend any online references on programming an illustrator script?
    I don't always have access to Illustrator.
    Many thanks in advance,
    Anthony

    Hi Carlos,
    I have a bit of programming background. I'm familiar with VB, C, C++. I'm a novice on illustrator.
    I attempted at writing quick "copy, paste & rotate" script in javascript, see below. But I need to somehow get the coordinates from another file (a text file).
    Can I use something like this on the Illustrator script?
    http://www.javapractices.com/topic/TopicAction.do?Id=42
    var selectedObjects = app.activeDocument.selection; var topObject = app.activeDocument.selection[0];
    var msgType = "";
    if (app.documents.length>0)
         myselection = app.activeDocument.selection;
         if (myselection.length>0)
    for (var i=0; i<myselection.length; i++) {
         myselection[i].duplicate()
         myselection[i].translate(200,0)
         myselection[i].rotate(13)
         myselection[i].duplicate()
         myselection[i].translate(300,50)
         myselection[i].rotate(50)
         myselection[i].duplicate()
         myselection[i].translate(600,10)
         myselection[i].rotate(45)

  • Image Coordinates ?

    I have an image being displayed in a JPanel and would like to obtain coordinates from the image when a mouse click is pressed, and not the coordinates of the mouse device. How do I convert or obtain the actual coordinates/pixel of where the mouse was clicked on the image. (I already have a MouseListener)
    Thanks.

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.io.IOException;
    import java.net.URL;
    import javax.imageio.*;
    import javax.swing.*;
    public class ClickHere extends JComponent {
         public static void main(String[] args) throws IOException {
              JFrame f = new JFrame("click on the image");
              f.getContentPane().add(new JScrollPane(new ClickHere()));
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              f.pack();
              f.show();
         private BufferedImage image;
         private AffineTransform xform, inverse;
         public ClickHere() throws IOException {
              String url = "http://java.sun.com/people/jag/images/JamesWavingFlashlightInSydneyLo.jpeg";
              setBorder(BorderFactory.createTitledBorder(url.substring(1+url.lastIndexOf('/'))));
              image = ImageIO.read(new URL(url));
              if (image==null)
                   throw new IOException("woops");
              Insets insets = getInsets();
              xform = AffineTransform.getTranslateInstance(insets.left, insets.top);
              xform.scale(2,2);
              try {
                   inverse = xform.createInverse();
              } catch (NoninvertibleTransformException e) {
                   System.out.println(e);
              addMouseListener(new MouseAdapter(){
                   public void mousePressed(MouseEvent evt) {
                        System.out.println(inverse.transform(evt.getPoint(), null));
         public Dimension getPreferredSize() {
              Insets insets = getInsets();
              return new Dimension(insets.left + insets.right + 2*image.getWidth(),
                   insets.top + insets.bottom +  + 2*image.getHeight());
         protected void paintComponent(Graphics g) {
              super.paintComponent(g);
              ((Graphics2D) g).drawRenderedImage(image, xform);
    }Click on the window and the pixel coord will be printed to console. The original image is 150x177 and I show it doubled in scale and translated for the titled border. It is wrapped in a JScrollPane, so you can pan.
    Punchline: if all you are doing is translating and scaling, just do the math (which is what I should have done :-). If your case is more complicated (rotation?) use an inverse transform to convert from device space to user space.
    --Nax                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Muse image metadata and global caption styling

    When will Muse be able to import image metadata and perform global caption styling with accurate positioning for lightboxes and slideshows?

    I've done some testing.
    if images are uploaded to the Facebook Wall, the Comments field that Aperture presents before uploading the image becomes the Description field on Facebook.
    however, if the images are uploaded to a known Facebook Album, the Version Name becomes the Description.
    both of these situations are not logical. in the case of uploading to the Wall, 'Comments' should probably be 'Description'. I'll report them to Apple's bugreport.
    images seem to be scaled down to fit within 2048x2048 pixels.

  • Using mouse click to return image coordinates.

    Ok so I've been trying to figure out how to do this and it seems very complicated for something that really seems straightforward.
    Anyway. I have a camera that updates an image object on the front panel using a while loop. I have another image object that is updated with a still image when the "snap" button is pressed. Now what I want to do is to click on a point in the snapped image and have the VI return the coordinates of that pixel in the image coordinate frame.
    What I've got so far is an event structure in the while loop with the following to occur in the event "image object -> mouse down":
    Server reference (reference to the image object) -> Property node (last mouse position) -> output screen coordinates.
    I've got two errors that don't make a whole lot of sense to me (I haven't worked with event structures before): "event data node contains unwired or bad terminal" and "event structure one or more event cases have no events defined". This second one seems strange since I don't actually want anything to happen if there's no mouse click. The first one seems to refer to the element box on the left hand side of the event structure.
    The above is my lastest attmpt at sorting this problem and as far as I can see it should work. whatever about the errors, am I even taking the right approach with this? I'd have thought image cordinates would be a common enough thing but search the boards here, it would appear not...
    Kinda stumped here. Any help is much appreciated.
    Message Edited by RoBoTzRaWsUm on 04-14-2009 08:34 AM
    Solved!
    Go to Solution.

    Hello RoBoTzRaWsUm,
    I have taken a look at your VI, which has been taking a correct approach to the data you are looking for.  As you are using and event structure, you should be looking for an event to occur.  When using a Property Node, you are trying read an attribute of a control.  However, in an Event Structure, I believe you should be using an Invoke Node.  An Invoke Node allows your to read an event or write a method with the Control Class in LabVIEW. 
    1. Place down and Invoke Node from the Functions Palette in 'Programming'->'Application Control'
    2. Wire your Image Control reference to it
    3. Click Method, and select 'Get Last Event'
    4. Right click on 'Which Events' and 'Create Constant'.  Make the constant '1' in the array
    5. Read the 'Coordinates' Cluster from the left hand side of the Event Case by right clicking  and 'Create Indicator'
    You will find a piece of example code attached.
    Regards
    George T.
    Applications Engineering Specialist
    National Instruments UK and Ireland
    Attachments:
    UKSupportMouseClick.vi ‏39 KB

  • Restoring bitmap (image) dimensions and PPI

    Here's something I haven't found a quick solution to after several years of use.
    The scenario is the following:
    1. You receive a document that has the images embedded and no access to original links.
    2. The images are scaled and proportions have changed. For example, PPI: 85.372 x 71.954 and Image Scale (H, V): 84.337%, 100.065%.
    Is there a quick way to change image scale to 100%, 100% or PPI to 72 x 72??
    I always have to do this by calculating the percentage the image has to be restored by horizontally and vertically to get the original ratio.
    Cheers.

    Mario Arizmendi wrote:
    Ok, Suppsosing you are on a Mac, see bellow the code, copy and paste exactly as it is in whatever TexEditor, and save it naming it UnScale.js (remove manually whatever other extension like .txt or .rtf..ect).
    Then place that file into your script directory and access it form the Illustrator CS3 application File/Scripts/OtherScripts... you must selec first the photo before aplly the script.
    so here is the code
    //    UnScale.js
    //    http://www.pictrix.jp/   Umezawa
    if ( documents.length > 0 ){
        SelObj = activeDocument.selection;
        for ( i = 0; i < SelObj.length; i++ ){
            gp( SelObj[ i ] );
    function gp( xObj )
        if( xObj.typename == "GroupItem" ){
            var gnObj = xObj.groupItems;
            if ( gnObj.length > 0 ){
                for ( var g = 0; g < gnObj.length; g++ ) gp( gnObj[ g ] );
            gObj = xObj.placedItems;
            for ( j = 0; j < gObj.length; j++ ){
                type = check( gObj[ j ] );
                if ( type != 0 ) reset( gObj[ j ], type );           
            gObj = xObj.rasterItems;
            for ( j = 0; j < gObj.length; j++ ){
                type = check( gObj[ j ] );
                if ( type != 0 ) reset( gObj[ j ], type );           
        else{
            type = check( xObj );
            if ( type != 0 ) reset( xObj, type );
    function check( pi )
        type = 0;
        if ( pi.typename == "PlacedItem" ){
            if ( pi.file.name.indexOf('.eps') != -1 ) {
                type = 1;
            else type = 2;
        if ( pi.typename == "RasterItem" ) type = 3;
        return ( type );
    function reset( pi,  type )
        pos = pi.position;
        mx = pi.matrix;
        mx.mValueA =  ( type == 2 )? -1.0 : 1.0;
        mx.mValueB = 0.0;
        mx.mValueC = 0.0;
        mx.mValueD = 1.0;
        pi.matrix = mx;
        pi.left    = pos[ 0 ];
        pi.top    = pos[ 1 ];
        if ( type == 2 ) pi.rotate( 180.0 );
    Thanks!

  • ATV resolution and scaling

    I'm a little confused about resolution and scaling. Currently I run my ATV through a projector which has a native resolution of 1280x720. As this exactly matches the ATV, I get a lovely picture.
    I'm thinking of changing my projector for a plasma TV. Many plasma TVs are coming out in 1080i, which I think is more than I need as I will only be using it for ATV and as a 2nd monitor for my MBP. I'm also concerned about loss of image quality due to the upscaling from 720p. I'd rather get a TV that is 720p native, like my projector. However, this doesn't seem to be so simple. I've looked at a few TVs which claim to be 720p, yet all of them have a resolution of 1024x768. I understand there may be some around which are 1280x720, but all the ones within my budget seem to be 1024x768.
    I would like to know how this different resolution is likely to affect my picture quality with ATV. I can see that 48 pixels can easily be lopped off to match 720, but what about the horizontal? Surely 1280 cannot be easily converted into 1024, at least not without a detrimental effect on picture quality?

    the_beev wrote:
    I'm a little confused about resolution and scaling. Currently I run my ATV through a projector which has a native resolution of 1280x720. As this exactly matches the ATV, I get a lovely picture.
    I'm thinking of changing my projector for a plasma TV. Many plasma TVs are coming out in 1080i, which I think is more than I need as I will only be using it for ATV and as a 2nd monitor for my MBP. I'm also concerned about loss of image quality due to the upscaling from 720p. I'd rather get a TV that is 720p native, like my projector. However, this doesn't seem to be so simple. I've looked at a few TVs which claim to be 720p, yet all of them have a resolution of 1024x768. I understand there may be some around which are 1280x720, but all the ones within my budget seem to be 1024x768.
    I have an older Panasonic with a 1024x576 panel it's HD ready and accepts up to 1080p signals. I have a newer full 1080p Panasonic full 1920x1080 panel.
    Guess which I prefer?
    The older one has picture quality that blows the other out of the water, but the main reason is I mainly watch SD stuff - I don't have an awful lot of commercial HD stuff though.
    There's something about the old panel though that just looks smoother and more natural - probably a case of mature 1024x576 technology vs early 1080p technology, and poor upscaling of SD content.
    I would like to know how this different resolution is likely to affect my picture quality with ATV. I can see that 48 pixels can easily be lopped off to match 720, but what about the horizontal? Surely 1280 cannot be easily converted into 1024, at least not without a detrimental effect on picture quality?
    Don't worry about 'lopping off pixels', the 1024x576 panels are still 16:9 aspect ratio due to non-square pixel arrangements and scaling works very well with AppleTv 720p IMO.
    So in some ways it may depend on what you're mainly watching, SD or HD - AppleTV should be fine with a 1024x576 panel. In general for plasmas/LCDs SD upscales quite poorly unless the sets have very good upscalers, so if you watch a lot of SD, a full HD set may give a worse subjective experience.
    AC
    Message was edited by: Alley_Cat

  • Image coordinates in JPanel

    Hi everyone,
    I need help in getting coordinates of a image that I have loaded in a JPanel using JFileChooser. The file is on my computer and that it can be any image. With the just loaded image, i have positioned it at 0,0 using the g.draw(). I will be dragging the image around the panel and I have seen some other people using certain methods to drag the image around the panel. Lets say the image img = null;
    I have tried img.getX(), img.getY() or
    img.getLocation.x, img.getLocation.y, or
    img.x, img.y or
    but the compiler give me "Cannot resolved symbol" for all the above methods or maybe some of the methods but the point is, none of the above methods work. Did miss out something or do i have to include some class or something?
    The reason i need to get the x,y for my image is to allow me to drag it around the panel. What i am looking for is to get the image coordinates x,y on the panel. As in the location of the image in the panel.
    Thanks in advance for the help.

    ... I have seen some other people
    using certain methods to drag the image around the
    panel. Have you asked them how they do it?
    Lets say the image img = null;
    I have tried img.getX(), img.getY() or
    img.getLocation.x, img.getLocation.y, or
    img.x, img.y or
    but the compiler give me "Cannot resolved symbol" for
    all the above methods or maybe some of the methods but
    the point is, none of the above methods work. Did miss
    out something or do i have to include some class or
    something?The something you're missing is the API. Make it your friend.
    >
    The reason i need to get the x,y for my image is to
    allow me to drag it around the panel. What i am
    looking for is to get the image coordinates x,y on the
    panel. As in the location of the image in the panel.There are two common ways to do this:
    1. Your custom panel directly drawing the image, so it has the job of knowing the image's position.
    Why not make imageX and imageY fields of your panel class?
    2. You custom panel class works like a Container, withe the image(s) being managed by a JLabel.
    Then your panel will use a null LayoutManager or perhaps will be a JLayeredPane and the JLabel's
    location is the location of the image.

  • IPhone 3G's camera roll empty on Image Capture (and iPhoto)

    I have 11 photos on the iPhone. I have loaded them to MobileMe, but they are scaled down with no EXIF data. The iPhone loads fine in iTunes, and the device can be seen by Image Capture and iPhoto. These apps just can't see the Camera Roll with the 11 photos. I have tried resetting everything but nothing works.
    Anyone got any ideas?

    The sync DOES NOT copy off pictures for you (yes it is part of backup file though, but not image files you can touch).
    iTunes CAN sync pictures TO the phone but not to Camera Roll.
    The Camera Roll is a special partition on the phone that when connected to a computer acts like *any other* digital camera. Thus to take pictures off the camera roll, you use what ever software you use to take off pictures of any of your digital cameras (as for Windows, it has the default Camera/Scanner wizard that it will normally offer up unless you told it to stop suggesting it).
    So once connected, no sync is needed. But your PC (unless you changed default settings in Windows as it has nothing to do with iTunes) will prompt you about a camera being attached and what do you want it to do.
    Even if it doesn't ask, it should show up under My Computer and you can just browse to it and copy the images off.

  • Image Capture and Preview "folder not writable" error importing to shared folder

    I'm running 10.8.5 on a Late 2012 model Mac Mini. I'm trying to create a folder under my home directory where my wife can import pictures using Image Capture or Preview while logged into her account. I've tried setting permissions on the folder by setting POSIX permissions and ACLs from the command line, and also by setting ACLs using Get Info in Finder, but it seems as though both Image Capture and Preview ignore the ACLs and instead rely solely on the POSIX permissions for everyone/other (even when a relevant group is set). Unless the POSIX permissions for everyone/other are "rwx" Image Capture and Preview both give an error that the import failed, and /var/log/system.log shows errors that the "folder is not writable". I'd like to be able to set this up without making the folder and the files in it writable by everyone. My understanding was that ACLs should take precedence over POSIX permissions, but even the POSIX permissions don't seem to be getting handled properly, because the group is ignored. Any help or explanation of what's happening would be appreciated.
    Here's an example with details:
    Suppose we have the users alice and bob. We want to set permissions on the directory /Users/bob/importdir such that Alice can import files from a camera there using Image Capture (or Preview, either would do), but don't want to relax the permissions more than necessary.
    We create a group named bob_and_alice
    We set the following permissions on /Users/bob:
    POSIX: rwxr-xr-x, owner=bob, group=staff (i.e. default POSIX permissions)
    ACLs:
    0: group:everyone deny delete
    1: group:bob_and_alice allow list,search,readattr,readextattr,readsecurity
    2: user:alice allow list,search,readattr,readextattr,readsecurity
    "Get Info" shows "Read & Write" for bob and "Read Only" for alice, bob_and_alice, staff, and everyone
    We set the following permissions on /Users/bob/importdir:
    POSIX: rwxrwxr-x owner=bob, group=bob_and_alice
    ACLS: (these are already probably more permissive than should be necessary)
    0: group:bob_and_alice allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,re adextattr,writeextattr,readsecurity,writesecurity,file_inherit,directory_inherit
    1: user:alice allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,re adextattr,writeextattr,readsecurity,writesecurity,file_inherit,directory_inherit
    "Get Info" shows "Custom" for both alice and bob_and_alice, "Read & Write" for bob, and "Read Only" for everyone
    Alice opens a Terminal and cd's to /Users/bob/importdir. Alice can create and delete files in this directory.
    Now Alice opens Image Capture and with our camera connected we try to import a photo to /Users/bob/importdir. Image Capture shows an error dialog with the text "Import error. An error occurred while importing. The item 'foo.jpg' was not imported." /var/log/system.log shows the message: "Jul 20 22:12:34 computer_name.local Image Capture[32804]: Document destination folder is not writable" If instead Alice uses Preview it shows an error dialog with the text "The selected folder is not writable" and /var/log/system.log shows two error messages:
    Jul 20 22:23:45 computer_name.local Preview[33280]: Document destination folder is not writable
    Jul 20 22:23:45 computer_name.local Preview[33280]: Encountered error during image import: Error Domain=com.apple.ImageCaptureCore Code=-9934 "The selected folder is not writable" UserInfo=0x7ffda4881f00 {NSLocalizedDescription=The selected folder is not writable}
    Now we change the POSIX permissions on /Users/bob/importdir to: rwxrwxrwx
    The import succeeds with both Image Capture and Preview
    Can anyone explain what's going on here? Is there another reasonable way to do this without, moving this shared directory to /Users/shared?

    Did you figure out how to fix this?

  • Image Processing and machine vision don't appear in Function Palette

    Hi,
    I have problem and I can't solve it
    Image Processing and machine vision don't appear in Function Palette, Although I set up NI imaq and NI Vision Acquisition Why??
    Anyone can help me?
    Solved!
    Go to Solution.

    If the image is already a Grayscale U8 image you would just have to save it to a bitmap file using the IMAQ WriteFile VI. If not, use the IMAQ Cast Image VI to convert it to a Grayscale U8 and then save it.
    Also, it would probably be better to create a new thread for questions like these.
    Cameron T
    Applications Engineer
    National Instruments

  • Hi I have been having a problem with Bridge in CS4 recently. So uninstalled CS4 and Lightroom 4.4 and reinstalled them on my Desktop PC. When I turned on Bridge through CS4, My thumb nail images disappeared and a thumb nail icon with CR2 appeared. Now som

    Hi I have been having a problem with Bridge in CS4 recently. So uninstalled CS4 and Lightroom 4.4 and reinstalled them on my Desktop PC. When I turned on Bridge through CS4, My thumb nail images disappeared and a thumb nail icon with CR2 appeared. Now some of my images have disappeared from Light room 4.4, but I can find them in CS4 and Bridge now shows some thumb nails as images and some as an icon with CR2. I have spent two weeks going through preferences etc. to find how to resolve my problem. Please can you Help? Meany thanks in advance
      Derek Randall

    I don't use LR and rarely use the bridge so I can not answers about thumbnails in them,  However thumbnails in windows file explorer and windows dialog for CS2 files will only show if you have installed codec into windows that will produce them. Windows does not do CR2 thumbnails on its own. I use FastPictureViewer Codec package for RAW File and PSD files thunbmail support.

Maybe you are looking for