Terminal how can i get the picture dimension of a file?

Is it possible to get the dimension of an picture (120 x 120 px) via terminal command? The information is visible under the finder "getinfo" command for picture files. Can anyone help?

You can get image pixel size info using the ImageMagick utilities, which is a GNU package available for installation via the fink pacakage manager, then you can use the terminal command:
identify image.gif
ImageMagick also has several other useful conversion and image processing utilities.
http://www.finkproject.org/
http://www.imagemagick.org/script/index.php
Good luck.
P.S. - There may be ways to interact with AppleScript from Terminal to get the Finder info from a file, but I don't know how to do that.

Similar Messages

  • How can I get the picture to show in Photoshop?  The thumbnail image appears in the right side panel but the full image isn't showing at all.

    How can I get the picture to show in Photoshop CS3?  The thumbnail image appears in the right side panel but the full image isn't showing at all.

    What specific information would you need?  The program was working just fine early yesterday morning and than when I came back in the afternoon to edit  some more pictures that is when I wasn't able to see the full image anymore.  It is providing me with all of the editing options as if the picture is there but it is just a blank screen with the thumbnail pic showing in the right panel. 

  • The apps I created from "add to homescreen" have turned white and have a few lines and circles in it. How can I get the picture back on them?

    The apps I created from "add to homescreen" have turned white and have a few lines and circles in it. How can I get the picture back on them?

    Those aren't apps; they're bookmarks to websites. Have you tried resetting your device by pressing and holding the Home button and power button until the silver apple appears? If all else fails, you can just re-do the shortcuts.

  • Got a new iPhone that I've been using for about a month now, so the question is how can I get the pictures from my old iPhone and keep the pictures I have on the new iPhone?

    Got a new iPhone that I've been using for about a month now, so the question is how can I get the pictures from my old iPhone and keep the pictures I have on the new iPhone?

    Connect old iPhone to computer and save the pictures on computer.
    Connect new iPhone and sync the pictures to your new iPhone.

  • How can I get the resolution of an image file in JSP?

    how can I get the resolution of an image file like jpg,gif,png in JSP ?

    Hii,
    If by the resolution, u mean size..this is how u can come to know....
    String add = "path/to/some.jpeg";
    javax.swing.ImageIcon chain = new javax.swing.ImageIcon(add);
    int height = chain.getIconHeight();
    int width = chain.getIconWidth();
    Hope that helps.
    regards
                   

  • Given an alias created by the Finder, from the Unix prompt (e.g., in Terminal) how can I get the target of the alias?

    In my Finder windows I have numerous aliases that point mostly to other folders. When in the Terminal, these aliases present as regular files. How can I get the target of an alias so that I can perform some operation, e.g., "cd", on the target?

    This AppleScript demonstrates how to resolve the OS X alias and return a POSIX path for it
    set af to choose file
    tell application "Finder"
      if the kind of af is "alias" then
      set origFile to the POSIX path of ((original item of af) as text)
      end if
    end tell
    display dialog origFile

  • How can I get the path of an existing file????

    Hi.
    I'm a newbie in Jsp development, so this question may appear trivial.
    How can I get the path into a String of an exixting file ..like ...
    String thepath = path_of("my file.txt");
    Thanks for your help.

    Try
    application.getRealPath("myFile.txt")

  • How can i get the column names in CSV file.

    Hi,
    After execution of infospoke i can not see the column names in that file.How can i get column of respective infoprovider?
    Thanks,
    Gananadha Lenka

    Hello Gana,
    Actually while exporting the data using Info Spoke, we have the possibility to modify the data that we send. This is possible using transformations.
    In your Info Spoke, you have a tab called Transformations.
    Here you need to create an implementation and then use BADi to populate data.
    Check if you can write a start routine sort of thing here and insert a new record into the internal table by hardcoding with your field headings.
    Let me know if you dont know how to create transformations.
    Kris...

  • How can we get the artset from a .ai file without opening it?

    Hello All,
    I have one .ai file, lets say sample.ai file. located in C drive. so the complete file path is "C:\Sample.ai".
    and lets assume the sample.ai file has one traingle shape(3 path type arts) in it.
    Now I want to get the 3 path arts (artset)  from sample.ai file without opening it in AI.
    The function protoype is like below
    AIArtSet& artSet GetArtSetFromAFile( ai::FilePath& filePath );
    Is there any API like above function in AI? or is it possible to get the art(s) from a file without opening it in AI?

    Not to my knowlege. The API only operates on active documents as far as I know.

  • Thumbnails show hourglass icons. How can I get the pictures back?

    I have photoshop 11. I'm running Windows 7. Most (80%) of my thumbnails in the organizer have been replaced with hourglass icons. How do I get my thumbnail pictures back and why did this happen?

    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • How can i get the pictures out of my ipod

    Im giving my old ipod to my niece but it still has pictures on it that I dont want to lose. how can retrieve the pictures from the ipod before resetting it? its an ipod nano 3rd gen.

    computers do sometimes recognise iPods as cameras when there are saved photos on them.
    as iDeer says, saved photos (unlike synced photos) can be deleted on the iPod. just go into the saved photos folder, go to the photo you wish to delete, select it, then click the bin logo in the bottom right hand corner.
    when you have saved photos on your iPod, this is the only time when it will act as if it has a 'disk mode'. you will be able to access them as you would access any other form of disk/usb stick (again, like iDeer, I don't have a Mac, so I'm not sure of the exact procedure). you can delete the photos by navigating to it like this.
    i'm not sure how iPhoto works either, but can't you delete the photos in there? i've also read somewhere on here that you can switch off the setting for iPhoto to open when you plug in a 'camera'. again, i'm not sure where you'd find that setting, but i think it is there.

  • My itunes account shows i have 1500 plus pictures. how can i get the pictures from this account to my windows computer

    my itunes account shows i have 1500 plus pictures. how can i transfer those to my computer

    If the pictures in question were taken with the device, copy them to the computer as would be done with any other digital camera.
    If the pictures were synced to the device via iTunes, they should already be on the computer.

  • My husband bought a new ipad and he created a new apple id and new password etc, now he wants to have all his pictures from his old Ipad that it was created on a different ID or Icloud id. How can i get the pictures?

    My husband bought a new Ipad Mini and he created a new Apple ID and new password for him, but his old Ipad was under my Apple ID and Icloud too. Now he wants to get his pictures from Icloud to his new Ipad, What do i need to do?

    You can use a wireless flash drive.
    Copy from old iPad > wireless flash drive > copy to new iPad
    http://www.sandisk.sg/products/wireless/flash-drive/

  • Since downloading Firefox, my photo's have disappeared and replaced by numbers - How can I get the pictures back

    I was having trouble with downloads on Ebay using Internet Explorer. They recommended Firefox. And it worked better. However, under My Pictures, the actual pictures disappeared and were replaced with the numbers only. I makes it difficult to remember which picture is which when you wish to download 50 or more items. I would like to have the actual pictures back rather than just the numbers. In fact, I do not have the pictures appearing that I use for Ebay. Thank you.

    If images are missing then check that you aren't blocking images from some domains.
    *Press the F10 key or tap the Alt key to bring up the hidden "Menu Bar" temporarily.
    *Check the permissions for the domain in the currently selected tab in "Tools > Page Info > Permissions"
    *Check "Tools > Page Info > Media" for blocked images
    *Select the first image link and use the cursor Down key to scroll through the list.
    *If an image in the list is grayed and "<i>Block Images from...</i>" has a check-mark then remove this check-mark to unblock images from this domain.
    Make sure that you do not block (third-party) images, the permissions.default.image pref on the <b>about:config</b> page should be 1.
    Make sure that you haven't enabled a High Contrast theme in the Windows/Mac Accessibility settings.
    Make sure that you allow pages to choose their own colors.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    Note that these settings affect background images.
    See also:
    *http://kb.mozillazine.org/Website_colors_are_wrong
    There are extensions like Adblock Plus (Firefox/Tools > Add-ons > Extensions) and security software (firewall, anti-virus) that can block images and other content.
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *http://kb.mozillazine.org/Websites_look_wrong

  • How can I get the exact pathname for a file on my computer?

    I need to enter a command in Terminal that contains the pathname of an application. I know what the path is but Terminal does not recognize it. How do I make sure the pathname is in the correct form?

    Enter the command up to the point of entering the file path and add a space, then drag the file into the terminal window. It will fill out the path.
    If you need to go further into the contents of the Application package, you can continue with /Contents...
    Another way is to start typing and then hit Tab to auto-complete. It will stop where it can't determine the next letter.
    So, type /App tab and it will fill in /Applications. Type a / and start with the name of the app, then tab and it should complete. Continue till you have the correct path.
    Spaces will be replaced with \<space>, so, App Store would end up as /Applications/App\ Store.app

Maybe you are looking for

  • Recovery Catalog showing wrong Archive Destination

    Hi All, I am using Oracle 10g on Solaris 10. The problem I am facing is this, while taking backup using recover catalog.............. Starting backup at 27-JUL-11 current log archived released channel: ch00 released channel: ch01 RMAN-00571: ========

  • Rev 2 G5 iMac Drive crashed twice.  Call it in?

    We purchased this iMac in June when the new revs came out. Since then, the hard drive has had what can only be described as terminal corruption twice. The symptoms are as follows: 1) I get a disk full message - close applications to continue. This wh

  • Duplicate table  and  Alias table in the physical layer

    Hi, I want a clear information regarding the duplicate tables in the physical layer of the rpd. I mean what is the purpose of the duplicate tables in the physical layer......... thanks, chinna.

  • Crystal Report XI crashes on Vista

    We recently installed Crystal Report XI on a Vista (32 bit). The app opens fine and can view/run reports. But, when we attempt to modify crystal report(s) the app will grey out and an OS message will appear: "Crystal Reports has stopped working". Thi

  • Informatica and Unicode

    Is anyone using Informatica with a successful unicode BW implementation? We are implementing Unicode BW and we also use Informatica. We have just been informed that Informatica is not unicode compliant. Has anyone else dealt with this issue? Thanks,