JAI and image dimensions

Is there a way to get an image's (JPEG, GIF, or TIFF) dimension in inches or mm. I have been able to get the image's pixel width and height but don't know how to convert that number to a usable metric such as mm or inch. I need to add functionality to a web app that filters image uploads on dimension sizes.
Thanks in advance.
Raymond Manaloto

Hello,
you need the resolution of the output device. Thats given in most cases as dots per inch. Have you an printer with 300dpi and an picture with 640x480 pixel it is printed as (640/300)inch x (480/300)inch. If you need an greater image you must scale the image. For example you need an 10 inch width image on an 300dpi output device and have an 640 pixel width image. The scale factor is sx=300*10/640.
The Java printing routines using an resolution of 72dpi.
I hope that helps.
Steffen

Similar Messages

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

  • Is there a Preserve Image Dimension when Relinking Setting in Framemaker 9?

    Hi,
    I am using Framemaker 9 (structured Frame) and would like to know if there is a setting (similar to InDesign) that preserves image dimensions when relinking. In InDesign, you can turn this setting off so that the updated linked graphic will not scale or move in the document. Does Framemaker have a similar setting? We use Illustrator CS3 to create graphics. These graphics are then saved to Adobe Acrobat X Pro PDF files. I Import by Reference the PDF file using the Grahic element in Structured Framemaker. If I make any changes to the graphic file in Illustrator, the graphic that was imported into the Framemaker document shifts inside the anchored frame and then I have to recenter all the updated graphics in Framemaker. Is there a setting in Framemaker that will allow me to update a graphic file in Illustrator without having to recenter it in Framemaker?
    I currently have the following File Handling & Clipboard options selected in Illustrator:
    Copy AS:
    -PDF
    -AICB (no transparency suuport)
    -Preserve Appearance and OverPrints
    But, these settings do not seem to help much for the imported graphic files in Framemaker.
    I appreciate any information you can provide.
    Thank you for your help.

    *** haven't checked, because I don't have any pre-9.0 files easily available ***  ... but from what I remember, if you're really just viewing the files in 9.0 you should need to save them explicitly back to an earlier version. FM may mark the files as "changed" when it opens them, but that's because it checks things like datestamps and cross-references. If you do not, yourself, explicitly change any content in the file you have opened, you don't need to save the changes; just close the file unsaved.  Check my supposition with a couple of files before relying on it! And other people will be able to give you a more detailed explanation of why file you haven't touched yourself still show up as "changed".

  • How To Display Image Dimension in Pixels Rather Than Inches

    I am using Photoshop CS3, which I'm still learning to use.  I want to see an open image's dimension (W X H) in pixels in the image's window/workspace.
    Right now, when I open a file it displays the file's Document Sizes in the lower part of the workspace (sorry, don't know the proper terminology).  Selecting the arrow next to this currently displayed information, I can then select Show>Document Dimensions.  However, it always gives the image's width and height dimensions in inches.  But, I want is to see these dimensions in pixels.
    How do I get the document's dimensions to be displayed in pixels rather than inches?  Thanks in advance.

    Oops!  Sorry about putting this in the wrong forum.  I'm using PS to edit images that I'm using within DW.  Hence, my (temporary) confusion.
    Anyway, yes, that solved my problem.  I appreciate the quick response.  Thanks!

  • Image dimension limitations in Photoshop Elements?

    I'm trying to find out what the maximum image dimensions are for Photoshop Elements 8.0
    I know Photoshop CS increased the previous limit of 30,000x30,000 to 300,000x300,000.
    According to this page, PSE 5 and 6 were limited to 30k:
    http://kb2.adobe.com/cps/402/kb402760.html
    Yet according to this page, PSE 5 can reportedly handle 300k:
    http://kb2.adobe.com/cps/333/333456.html
    I'd like to upgrade from Elements v4 to v8, but one thing I need to ensure is that it can handle >30000px images, otherwise I'll have to go for CS5...
    Can anyone give me a definitive answer, please?

    When you installed the plugin(s), the installer should have created a folder in
    C:\Program Files (x86)\Image Trends Inc\Hemi 1.0
    Go to the Hemi 1.0 folder and copy the three plugins that don't say x64 and paste them into the pse 11 editor plugins folder
    C:\Program Files (x86)\Adobe\Photoshop Elements 11\Plug-Ins

  • Viewing image dimensions in Finder

    This may be an obvious question, but how can I view the pixel dimensions of images in Finder? I am new to the mac platform and I know in windows you can simply hover over the thumbnail in Explorer and it would tell you the dimensions of the image.
    The only way that I have found the pixel dimensions in OSX is to open the pictures in preview and then "Get Info"

    In List View, no. Sorry!
    In Column View, open up the View Options and check "Show Preview Column". Click on an image, and in the Preview column, under the preview, there should be a list of information. The item marked Dimensions has what you are looking for.
    There's also a way that works for all three views that involves the Get Info pane *in Finder* rather than in Preview. Click on an item, and hit Command+I. Open up the "More Info" section of the Info window (at the far left of the screen), and the Dimensions appear.
    Message was edited by: andlabs
    Message was edited by: andlabs

  • Resizing text and images with actions and keeping it resized for the next slides, how to?

    Hello everybody,
    I searched over the net and in this support section for a solution to my problem, but i didnt find any, so...here I am asking you experts.
    Through a particular use of different actions I make a logo "compose" in the first slide of my presentation (the logo is composed by text and images that interact), then in the second slide i make it resize so it goes 50% of its size and moves down like a TV logo, in the corner of the slide, and I want it to stay there for all the lenght of the presentation.
    It might be a stupid problem, but I didnt understand how to keep it there, 50% of its size and always in that position. If i duplicate the slide I obviously duplicate the 100%-size-logo, not its 50%-size-version, and if i shrink it in order to make it be 50% of its size the text size doesnt shrink so i have to change the text size manually, but the visual effect is imperfect.
    Lets summarize:
    slide 1: text appears, image appears, the text and the image move and "compose" the logo
    slide 2: the complete logo reduces its size to 50% and moves in the lower corner of the presentation, in the place I want it to be for, lets say, 20 slides
    slide 3: i want to have this logo already reduced in size and in its position, in the right lower corner, but if i try to group the different parts of the composed logo and i try to squeeze them the font doesnt change its size, I only squeeze the area that the text occupies.
    Some help please guys?
    Thanks in advance,
    Dom-
    (add: the problem is kind of similar to this: https://discussions.apple.com/message/9179367#9179367 . the idea of making a slide that contains the logo and text in the exact positions they would be after the move and scale actions is good and that was my first attempt, the probem is that it looks impossible to me to create a second "little" version of the logo that looks exactly the same of the first one that i reduced, so i hope there is some way to tell the app to use "the first logo, only resized the way i want", and thats the point where the problem with the size of the text comes out)

    Hi pritam,
    The “maintain proportions of window for different monitor
    resolutions” property will maintain the proportional size of the front panel
    (its x and y sizes) when opened in a different resolution. The front panel
    objects will not be resized and will appear larger (and may not fit inside the
    front panel) when saved in a higher resolution, and moved to a lower
    resolution. You can use the “Keep window proportions” property to achieve the
    same results.
    To have both the front panel dimensions and front panel
    controls scale, you need to have both the above property and the “scale all
    objects on front panel as the window resizes” selected. The labels will not be
    resized by this.
    I tried using both properties on two monitors and noticed
    that the change does not occur when the resolutions between the monitors are
    different. I had to lower both monitors’ resolution to see the change work
    properly.
    Please post back if you have any questions. Have a great day!
    Ryan D.
    District Sales Manager for Boston & Northern New England
    National Instruments

  • Flash Export and Image Quality

    When I place Illustrator CSx eps files in my keynote presentations and then export to flash it really chews up the images. You would think vector images would fair the best but the lines are very jagged making the presentation look very ugly.
    Does anyone have any tips on improving this? I've tried PNG,jpg, etc.. the images I'm using are line art (e.g. diagrams) but it doesn't seem to help using other file formats.
    I don't understand why there is no compression control available for flash export....
    Mark

    edit your image in photoshop and experiment with various settings/size.  there's no magic high quality small file size setting.
    it's a trade-off.  the higher the quality and the greater the image dimensions, the greater the file size.  you have to decide where those are acceptable.

  • Finder doesn't show image dimensions

    Hi!
    I have a problem with image dimensions in Finder. Finder doesn't show image dimension info in preview column and Get Info window. But when I open in Preview app I can see dimensions in Get Info window. How to solve this problem. If I want to sort images by dimension, I can't do that. Because Finder doesn't know image dimensions. You can see images below.

    Terence Devlin wrote:
    That's because the Finder is a file manager and works from file metadata. The data you're seeking is about the file contents. You need to use a Photo Manager or Browser.
    There is someone who can sort images by dimensions and see dimensions in list view. Also if Finder will not show image dimensions, why give me "Dimensions" and "Resolution" option to select in list view.
    VikingOSX wrote:
    Launch a Finder window. Press command+J, and set Show Item Info. Now the image dimensions will show below each image icon. If it is a movie, then the duration of the movie is shown.
    I have done this. But doesn't show information.

  • Column view in Finder does not display image dimensions

    Image dimensions display a -- when browsing in column view. If I view info on the image it appears. If I move off the highlighted image file and go back it disappears again. I have looked into the spotlight solution and do not have any folders listed under Privacy. I am running 10.7.4 and all updates are current.

    Go to your Finder "Go" menu hold the option key and choose Library. Then go to Preferences folder and trash this file:
    com.apple.finder.plist
    Then, restart, or log out and in again.
    (You may have to reset a few finder prefs the way you like them.)

  • Image Dimensions not showing

    This MAY be a Photoshop CS3 issue, so forgive me if it is, but I can no longer see image dimensions in the (Leopard) finder. The problem seems to have started when I upgraded to Photoshop CS3, but I upgraded to Leopard just a few days prior to the CS3 upgrade. If I look at images that were already on my hard drive before Leopard, the dimensions appear. Any new images I save via Photoshop no longer have dimensions appearing in the finder preview area.
    Edit: This definitely appears to be a Leopard issue. It appears that ALL new images, no matter which program saved it, do not have dimensions attached. I opened a jpeg with Preview and saved it as both a jpeg and a png, and no dimensions appeared.

    I was doing a lot of graphics stuff the other day, for many hours, and noticed that the things I had just saved were not showing the pixel dimensions in the Finder. For me simply selecting the image in the Finder caused the dimensions to appear. You might also try a restart, then open a folder with the new images and see if the dimensions are now present. Also had a bizarre result in Cover Flow where several newly created images all displayed as being exactly the same (all looked like the first image created). In that case a force restart of the Finder brought things back to sanity.
    Francine
    Francine
    Schwieder

  • When I print in Photoshop CS6 the image prints narrower than stated image dimension.

    When I make a print from CS6 the image on paper is narrower than the stated dimension in the program. The height of the image is faithfully reproduced. I know that there must be a preference setting to correct this but I can't remember which one it is.

    I just finished watching a segment of Luminous Landscape's Camera to Print and Screen 2 video series on printing to canvas. Problem Solved;  I feel foolish that I didn't mention that I was printing-on-canvas as the solution to my dilemma would have been obvious. I measured a canvas print that I did last week and it has shrunk even more than when I first measured it. I have since printed large images on Epson enhanced matte and the dimensions were spot on. Thank you for your responses and great job on the video.
    Palm Coast Charlie...

  • Image dimension in cm or picca or inches

    is it possible to get image dimension in cm or picca or inches other than pixels. I tried with Imagero but it gives only in pixels. Is there any package to get in cm or picca?
    Thanks,
    Thanuja.

    ok i got ur point.
    so formula is
    inches=pixels/dpismall clarification. I got the pixel value of the image. Is it possible to get the dpi of an image as well? If so then using the above formula i can
    easily find out the dimension in inch right.
    am i clear or going wrong somewhere? for the first time iam dealing with this images,dpi,inches and pixel sort of thing. Only now i understood what dpi is.
    and one small clarification
    have visited ur site http://balusc.xs4all.nl/srv/dev-jep-fil.html . Fileservlet really helped me. but when i navigate other links in ur site like java tutorial the content is not in english. its something like the below
    In deze Nederlandstalige Java tutorial wordt uitgelegd hoe het object geori�nteerde programmeertaal Java in elkaar steekt. Java is een krachtige platform-onafhankelijke taal dat op praktisch alle gebieden toegepast kan worden. Van mobiele telefoons (Java Micro Edition, Java ME), via computerprogramma's (Java Standard Edition, Java SE) tot grote dynamische webapplicaties (Java Enterprise Edition, Java EE).
    I dont know which language it is? could not understand? should i download any font or is it in any other language. u not from India? name sounds like an south indian.
    Thanks
    Thanuja

  • Finder - Image Dimensions column

    Hi I have thousands of files I am organizing and want the image dimensions in column view. You can do this on windows 95 how come not Mac OS X (which I love)!??
    Can somebody tell me how to do this - it would be a lot of help!
    Thanks

    Alas you cannot have it ALL ways...
    Column view is basically a cleaner version of List view - without any of the file information visible at a glance. If you click any item shown in column view - the preview to the right should show the dimensions at the bottom, along with other data.
    If you want to see all of the dimensions at a glance, you can set them in Icon View. I have the View Options for all of my folders that are full of images (which is the bulk of my folders, as I am a designer) set as below.
    Double-click on the folder containing the images
    Click on the Icon View thumbnail at the top of the finder window
    Go to View / Show View Options
    Select "Always open in icon view"
    Slide the "Icon size" all the way to the right (to 128 x 128)
    Slide the "Grid spacing" all the way to the left (to keep them grouped close together)
    Select "*_Show item info_*" (*this is what you are after*)
    Select "Show icon preview" (if this is not selected)
    Select an option in "Arrange by" (this will sort / arrange them after the changes)
    Select "Use as defaults" at the bottom, if you want this to be the default settings for any folder that has been set to Icon View.
    This setting shows me everything I need to see quickly, and allows me to bypass the Cover Flow view, which I love - but it is only useful on the odd occasion for two reasons:
    1.) It doesn't play friendly with all of my image files, it usually looks horrible (BIG deal breaker!)
    2.) If I am looking over a folder FULL of images, I can usually find what I am looking for quicker by using the overview that Icon View allows, rather than flipping though the images one at a time.

  • Dreamweavwr CS6 Mac no Image Dimensions in Assets tab?

    I have a imac with mavericks. I have a file open. I let it sit open for over an hour. I have restarted it a few times. Still no image dimensions. The size and file name appear though.

    In mine, the dimensions show. You probably need to scroll the window horizontally to see the tab, you can then resize it by grabbing the line between the Name and Dimensions tabs and sliding it over..
    EDIT: OP, I'm on Windows7, so I don't have any info for you unfortunately. Maybe try rebuilding the site cache from the Files window's menu, or clearing the program cache:http://forums.adobe.com/thread/494811

Maybe you are looking for

  • Trying to change the labels for some UI elements

    hi, Problem:  I am trying to change the labels for some UI elements and transport the views from one server to another server. the lables show changed in the source server but the changes dont reflect in the destination server Kidly help me to slove

  • Query mode trigger....

    Hello folks, I have this problem, i need when-validate-item to fire in query mode, in the help they say this trigger can't be fired in query mode is there any way to produce the same effect or validation in query mode, what i need is when a user fill

  • Star schema versus snowflake schema

    I have a question regarding dimensional data modeling. My question here is, when star schema model would be useful and when snowflake schema model would be useful. In star schema, we have only fact and it is connected with dimensions. But in snowflak

  • I've lost my ipod. After buying a new one can I download purchased apps and games again?

    What it says in the question. I bought a few songs and alot of apps and games on my lost Ipod. When i buy a new one am I going to be able to download them again with out charge?

  • Using AVI files w/final cut

    Tried opening/importing, no luck, only a black screen in the viewer. Strangely, the timeline reflected the length of the clip (12 seconds of AVI video), but fcp was unable to play the video. I ended up having to import the files to a pinnacle system