Getting image properties

anyone know of any jsp code that i can use to get an image's width and height?
(the image is stored externally to the jsp and is referenced with a url)

Use the ImageIcon class to load the image from the URL and call the methods to get the width/height.

Similar Messages

  • How to get image properties in PDF using javascript or plug ins

    Hi
    How to get the image(all the images) properties in PDF using javascript or suggest plug ins
    Thanks in Advance

    HI,
    In the PDF Edit API's ( as has already been suggested) there is the PDEImage and using this you should be able to find out everything you need to know about any image in a PDF file.
    I would recommend starting with PDEImageGetAttrs
    Hope this helps
    Malcolm

  • Get image properties not in Metadata

    Hi,
    I use the XMPScript API with a JScript for Photoshop to get files image properties (width and height) before to import them. It work well but SGI and OpenEXR files don't have width/heigth information in the Metadata. I would like to know if it's possible to figure out this problem.
    For example, how ACDSee can get this information for SGI files ?
    Thanks

    Bridge has an alternate interface for accessing metadata from image files. You may be able to get the values you need that way. The other alternative is to call exiftool via app.system(), have it dump its results to a text file and see if what you need is in there.
    -X

  • How to get image properties in PDF using javascript

    Hi
    How to get the image(all the images) properties in PDF using javascript?
    Thanks in Advance

    Hi
    Thanks for your quick response. Any recommended plug ins
    Thanks in advance

  • Getting image properties/feats  ???

    Hi,
    In Windows XP .jpg files have details like :
    -date modified
    -date created
    -etc...
    When you enter the summary tab and click the advanced button
    There is a whole bunch of other properties. Like the date which
    represents the photo taken. Time, camera manufacturer etc.
    How can I acces these properties using Java??
    Thanks, Joeri

    date modified would be available from the file itself (File.lastModified()), as would name and size in bytes.
    The rest would have to be read from the file itself. XP will only display that type of info if it knows the format of the image and can get the info out (or the info is there). Like JPEG images have some header space where comments and such can be added, and probably other types have this as well. That stuff is written in by the app that made the image in the first place. So you need to know what to look for inside the image file.
    One thing to try is open that same image in notepad and see what's at the begining of the file, you'll probably see the same information there.

  • Get image properties (width and height)

    Hi there,
    Does anyone know if there is a way that I could get the width and height of an image to be displayed in a JSP.

    Image has methods to get the width & height.

  • How to access iPhone "Photo Library" to get image file properties?

    I want to access iPhone "Photo Library" to get image file properties(name, list etc..) without dialog.
    Is there any suitable method/class to this?

    Allan,
    Thank you for your reply!
    My purpose is access to "Photo Library" by iPhone API.
    Because, I know several iPhone application which has own image list and the list is synced to "Photo Library".
    If I take photo by iPhone native camera, the taken photo is listed up on the image list so I guess those applications can access to "Photo Library" directly.
    Or.. any other solution..?
    Gazza

  • How do I get images to automatically center in a picture box?

    How do I get images to automatically center in a picture box (e.g. place a picture box on a master page and set it so that any image placed inside will automatically center, but not scale)? This was a simple procedure in CS5 (set "Fitting Options" to 'center' by clicking on the center box in the 9-box centering tool) but seems to have disappeared in CS6/CC. Am I missing something?

    Hi and thanks. Actually, my problem is with setting the properties of the image frame to 'align center' before an image is placed, allowing me to place large numbers of images and having them automatically center instead of me centering each one manually. Even when I create an object style the frame will not hold any alignment settings and apply them to the image being placed (unless some manner of scaling has been chosen, which is not something I want). There are work-arounds I have used but it would be nice to be able to just put a picture box on a master page, set it to align it's contents to the center and just be done with it . Thanks though.

  • How to include background image in 'FP.Get Image' method?

    Hi,
    in LV8.20 you can set background pictures by right-clicking right scrollbar of the frontpanel and selecting 'properties'. It's nice and works fine...
    But:
    When using an invoke node with method 'Front Panel-> Get Image' the background image is NOT included in the resulting image!
    Is there a method that also grabs those background image?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

    Ken,
    Could you please post the CAR number for this issue?
    Thank you,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Finding image properties?

    I'm looking for a way in applescript to get the properties of an image in a rectangle specifically its color space. I want to be able to place info about the image in a text box.
    I can get the the images
    set theimages to all graphics of page 1
    but I can't get find the code that digs deeper into the individual images/graphic
    Can anybody help?

    There are numerous ways to skin this cat using AppleScript… Here is an example that should show you what File/Image Data is available to MDLS & SIPS… You can use AppleScript's Image Events but it's pretty much SIPS in AppleScript classes… Both of these utilities will allow you to pull particular keys if you want or you can get the whole blob and parse in AppleScript… I guess you can sort the rest…
    tell application "Adobe InDesign CS5"
              tell the active document
                        set myGraphics to all graphics
                        repeat with thisGraphic in myGraphics
                                  set imgType to image type name of thisGraphic
                                  if imgType = "JPEG" then
                                            set myFile to file path of item link of thisGraphic
      -- Convert HFS path to POSIX for the shell
                                            set myFile to quoted form of POSIX path of myFile
      -- Use Spotlight metadata
                                            set mdlsData to my mdlsImage(myFile)
      display dialog (mdlsData) giving up after 3
      -- Use Scriptable Image Processing System
                                            set sipsData to my sipsImage(myFile)
      display dialog (sipsData) giving up after 3
                                  end if
                        end repeat
              end tell
    end tell
    on mdlsImage(path)
              return (do shell script "mdls " & path)
    end mdlsImage
    on sipsImage(path)
              return (do shell script "sips −-getProperty -g all " & path)
    end sipsImage

  • Image properties in a7p

    I need to get the x/y coords of images in my file. I don't
    know why the Image Properties box does not appear, it only appears
    to images in a library, which have different x/y's. Any
    ideas?

    You'll need DisplayLeft and DisplayTop but these values won't
    be valid until
    the file is running. You could use a menu to activate a test.
    Add in an
    interaction at the top of the file. Then connect a dropdown
    menu. Change the
    scope to perpetual, change the branch path to return. Add an
    interaction
    inside the dropdown, attach a button and a fullscreen
    hotspot. Name the
    button exit and change the branchpath to exit. Put a calc
    icon inside the
    hotspot and put this in it
    Trace(DisplayLeft@(ObjectClickedID))
    Trace(DisplayTop@(ObjectClickedID))
    Run the file. You can use the menu to start the hotspot and
    click the item
    on screen to get the X and Y. Use the exit button to close
    the hotspot. (you
    could just make the hotspot perpeual but that would interfere
    with other
    things in your file)
    You can't automate this because DisplayLeft and DisplayTop
    aren't valid
    until the screen runs. You can use GetIconProperty with
    #awInitialX and
    #awInitialY but that won't work if the positioning is not set
    to onScreen...
    which you can't set inside the same file. You need a command
    to make
    settings like that.
    Mike
    ====================
    Mike Baker
    Adobe Community Expert
    mike-baker at cox dot net
    "dparrott" <[email protected]> wrote in
    message
    news:g434m8$7h2$[email protected]..
    > Image properties is not an option when I open the icon.
    They are imported
    bmp
    > files.
    >
    > Yes, the images are linked to a library.
    >
    > I know I can set the graphics to OnScreen and see the
    coordinates, but
    those
    > are the center coordinates. Can I set all of the
    graphics to OnScreen
    > temporarily and extract the coords and calculate the top
    left corner
    values?
    > Hopefully in a calc icon?
    >

  • Rich text box used in Infopath Form not displaying option to get images from Computer

    Hello,
    We have used "Rich text box" in Infopath Form which is not displaying option to get images from Computer.
    Options available are : From Address, From SharePoint
    But if we Rich text box in list, then it works fine with "From Computer" option.
    can you please help me out to get this option.
    Thanks in advance.
    REgards,
    Jayashri

    Hi,
    From your description, there is no “From Computer” option to get images with rich text box in InfoPath form.
    Per my knowledge, by design there are “From Address” and “From SharePoint” options without “From Computer” option in rich text box in InfoPath form. As a workaround, you can develop a custom InfoPath Rich Text box to do it.
    About developing a custom InfoPath control, I suggest you create a new thread on the forum “Visual Studio Tools for Office”, more experts will assist you with InfoPath development.
    Visual Studio Tools for Office:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=vsto&filter=alltypes&sort=lastpostdesc
    Thanks,
    Dean Wang

  • How to get all properties for an item with search?

    How can I get all crawled / managed properties back of an item with the search API (REST, client, or server)?
    Currently I am only aware of specifying the applicable properties specifcally by using the selectproperties parameters via REST:
    http://host/site/_api/search/query?querytext='terms'&selectproperties='Path,Url,Title,Author'
    (taken from http://blogs.msdn.com/b/nadeemis/archive/2012/08/24/sharepoint-2013-search-rest-api.aspx)
    I don't want to do this. I just want to get all properties back that
    are associated with the search results.

    Its my understanding that standard managed properties will be returned, like: Created Date, Last Date Modified, Author, Title, etc.  However, if you need more than that you will need to specify the properties to return.
    This blog post also has a similar thought process:
    http://www.blendmaster.net/blog/2012/09/view-managed-property-value-in-sharepoint-2013-using-search-rest-api/
    Brandon Atkinson
    Blog: http://brandonatkinson.blogspot.com

  • When browsing a new library that I created, the browser shows dotted lines around grey rectangles, no images. When I double click on a rectangle the image appears. How do I get images to appear in the browser rectangles?

    When browsing a new library that I created and exported onto an external hard drive, the browser shows dotted lines around grey rectangles, no images. When I double click on a rectangle, the image appears, but all the other rectangles remain empty - no image. How do I get images to appear in the browser rectangles? I am viewing this on a second computer (an older intel duo iMac), not the one I created the library on (a MacBook Pro). Both computers have Aperture 3.2.4 installed. When I return the external to the MacBook, all images appear in browser rectangles. What's happening on the iMac?

    You may have a problem with the permissions on your external volume. Probably you are not the owner of your library on the second mac.
    If you have not already done so, set the "Ignore Ownership on this Volume" flag on your external volume. To do this, select the volume in the Finder and use the Finder command "File > Get Info" (or ⌘I).
    In the "Get Info" panel disclose the "Sharing & Permissions" brick, open the padlock, and enable the "Ignore Ownership on this Volume" flag. You will have to authentificate as administrator to do this.
    Then run the "Aperture Library First Aid Tools" on this library and repair the permissions. To launch the "First Aid Tools" hold down the ⌥⌘-key combination while you double click your Aperture Library. Select "Repair Permissions" and run the repair; then repeat with "Repair Database". Do this on the omputer where you created the library and where you can see the thumbnails.
    Then check, if you now are able to read the library properly on your iMac.
    Regards
    Léonie

  • Error while getting  image from database in SUP using ios?

    Hi All,
      Im developing native iOS application using sup 2.1.3 . Im getting error While retrieving  image from SUP database. Here i'm trying to get image from database and show in imageView.can any one help me how to fix this issue?
    In database image datatype is  'LONG Binary' .
    My table Schema:
    CREATE TABLE dba.ImagesTable (
    RowID INT NOT NULL,
    ImageName VARCHAR(20) NOT NULL,
    PhotoData LONG BINARY NOT NULL,
    IN SYSTEM
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA137 PRIMARY KEY CLUSTERED (RowID)
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA138 UNIQUE NONCLUSTERED (RowID)
    in Xcode:
                [SUP107SUP107DB synchronize];
                SUP107ImagesTable *imgTable =[[SUP107ImagesTable alloc]init];
                SUP107ImagesTableList *list =[SUP107ImagesTable findAll];
                SUP107ImagesTable * oneRecord =[list objectAtIndex:0];
                NSLog(@"rowId:%d---imageName:%@---photoData:%@---photoLenght:%d",oneRecord.rowID,oneRecord.imageName,oneRecord.photoData,oneRecord.photoDataLength);
                NSData *tempData =[[NSData alloc]init];
                SUPBigBinary *responseBinaryData = (SUPBigBinary *)oneRecord.photoData.value;
                @try {
                    [responseBinaryData openForWrite:[oneRecord.photoData length]];
                    [responseBinaryData write:tempData];
                @catch (NSException *exception) {
                    NSLog(@"exception: %@",[exception description]);
                UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(50,50,100,100)];
                [self.window addSubview:imgView];
                UIImage * tempImage =[UIImage imageWithData:tempData];
                imgView.image = tempImage;
                [responseBinaryData close];
    Error Log:
    2014-04-02 18:42:15.150 SUP102[2873:70b] rowId:1---imageName:Apple---photoData:SUPBigBinary: column=c pending=1 allow_pending_state=1 table=sup107_1_0_imagestable mbo=0x0 key=(null) ---photoLenght:90656
    Printing description of responseBinaryData:
    <OS_dispatch_data: data[0xc891b40] = { leaf, size = 90656, buf = 0x1213a000 }>
    2014-04-02 18:42:33.304 SUP102[2873:70b] -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] exception: -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.306 SUP102[2873:70b] [ERROR] [AppDelegate.m:497] NSInvalidArgumentException: -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40

    This thread talks about uploading image to SAP from a IOS device,Sending Image to SAP via iOS Native app (SUP 2.1.3)
    Midhun VP

Maybe you are looking for