Get the width and height of the image

Hi scripters

I try to get the width and height of my image file. Here is my code

myPicFile = File("c:\\ar.eps");

h = myPicFile.height;

w = myPicFile.width;

Alert (h)

Copy the following code generates error

---------------------------
Script alert
---------------------------
undefined
---------------------------
Ok
---------------------------

How can I get the height and the width of my image? is there another method?

Thanks in advance

concerning

a you are the

Dear Arul,

Here, my code is in InDesign. I don't know that we get the size of the Image directly. ?

Throught InDesign [you using the InDesign Script then] Script here I pasted the code below...

= Image height / width =.

myDoc var = app.activeDocument;

myPicFile = file ("E:\\HariharaSudhan\\Blue hills.jpg");

App.place (file (myPicFile);

= Then u please select the Image file in InDesign and then you run the script = / /.

mySel var = app.selection [0];

var limit = mySel.geometricBounds;

var height = related [2] - bound [0];
var width = Bound [3] - bound [1];

Alert ("Image Height:" + height + ""+"Image width:" + width);

= End: getting the Image height / width =.

Please let me know if you have any questions.

Thank you & best regards

Thierry T.R.Harihara

Tags: InDesign

Similar Questions

  • How to get the property of the image on the width and height?

    Hi, all, I import image from the outside with the following method, but how to get the w3c_main.png on the width and height property? I will appreciate for your answer.

    var mcLoader = new MovieClipLoader()
    mcLoader.loadClip (" http://www.w3.org/Icons/w3c_main.png", image);

    or an image. LoadMovie (" http://www.w3.org/Icons/w3c_main.png")

    in the first case use the method onLoadInit() to a listener for your mcl before trying to access your target movieclip laborious and _height properties.

    in the second, use the preloader code to ensure your png loading is completed before attempting to access the _width and _height of your target movieclip properties image.

  • Apex 5 display image field, control width and height on the form page

    Hello everyone,

    I try to display the image from a blob directly column on the page, it does not work well, here's my question, how can control the width and height of the screen image field, because its changing dynamically the size of the screen according to the original dimensions, I want to set the dimensions.

    Any help will be appreciated.

    Concerning

    Anil

    set the width and height attributes in the attributes of the image html elements

    for example Width = "200" height = "100".

  • I need a file to an exact width and height and it must be in png format, because it allows to translucency. My graphics are only the top of the page and when I export only the graph is not exported the entire file. How can I get the entire file to ex

    I need a file to an exact width and height and it must be in png format, because it allows to translucency. My graphics are only the top of the page and when I export only the graph is not exported the entire file. How can I get the entire file of export including blank parts?

    in the export dialog box, you have chcked 'use of work plans? ''

  • How to get the Social/Vimeo widget for the width and height of the scale?

    I'm trying to get the Social/Vimeo widget proportion nationwide. For the moment, he played only in width but no height.

    Once it hits a specific breakpoint that is fine, but once you go beyond this breakpoint it does not keep the correct proportion and so on and so forth.

    I have 'Sensitive' width ' Resize' option, but ideally it should be 'sensitive width and height' but it is grayed out.

    Is there a solution?

    Drag the Central background of the video object up so the framework encompassing is very short and release. (While you do this the width of the object should not change, just the height.) Once you release Muse will take your browser redraw the video. It will then be abruptly to the proportions of the video (and probably push other things you will need to then back manually to the desired gap distance).

    What you did by dragging the shorter height and releasing was to set the minimum height for this object is very low. You should see a horizontal dotted line in the color of edges of framework that specifies the minimum height, you just put. Now that the video shrinks in width (and proportionately is shortened) the bounding box around it also will shorten (down to the minimum that you just put) and the following will be moving upwards to maintain the same distance from the gap of the video.

  • How to resize an image using PIXELS to define the width and height?

    I need make my image a certain number of pixels wide and high.  When I resize image I can't change the area that shows the pixels of width and height, and when I drop down lists it does not give option pixels.  When I choose "points" and "Pica" they are obviously not other names for the pixels because the given number is not the number of pixels above.  I used to be able to do it EASILY in elements 2.0, my previous version of elements.  I am now using 8.0.

    In fact, I just realized that nothing that I in image resize will change the number of pixels at ALL in question.  Size and pixel per inch are locked permanently in relationship to each other.  I had to download a new version not long because my computer hard drive has failed, and I think they changed the things that work so not now, because I would have noticed it before now if it's that way when I downloaded originally from that.  I begin to fear that I'll have to kludge with the crop tool, even if the resizing of the image SHOULD be able to.

    Make sure resample is checked:

  • How can I get out_data.width and out_data.height when the management of the user interface?

    Hello!

    I am currently working on a project where I change the projection of a video based on where the user click position and I would get out_data.width and out_data. height in an event DragHandle to change one of my slider.

    These values are always set to 0 and is available in the rendering. Any idea on how to get these values? Or maybe I'm working backwards...

    Thank you!

    AW.

    I guess that you are working on 13.5...

    Since 13.5, the sequence data is not editable between the rendering thread. only

    Since the UI thread changes make to the project and the rendering thread.

    but not the other way around.

    I should have mentioned that before.

    There area has some workarounds I can think.

    1. Add a pointer in the sequence data that are shared between threads.

    (you need to be able to say 'live' recorded with pointer

    the project and points to an invalid address)

    2. store your data in the handful of global_data, which is shared between

    threads. Alas it is also grind between the instances, so you will need to

    to say what recorded little data belongs to which body.

  • Scale the image to fit the width and height of the browser

    Hey, I'm looking to launch a new website for me and while I have been around the navigation to find inspiration, I came across an effect I want.

    I'm not sure what the right terminology is to define the search, but it's basically an image at 100% width and height scale until you scroll.

    Some examples are in the section "Site of the day";

    Ali-Pordeli

    Congress · Dogstudio

    Thank you

    Matt

    You can use the slide show full-width on the pages for the similar effect. Please see these videos for more details:

    https://helpx.Adobe.com/Muse/how-to/add-100-width-slideshow.html

    https://www.YouTube.com/watch?v=B-9zD-8Q0RM

    https://www.YouTube.com/watch?v=DHjDpxNusMw

    Thank you

    Sanjit

  • I don't get width and height of the menu options

    When I click on a picture or an object I don't get width and height options menu in the upper part.

    Expand your application window

    or

    Click on the 'x' or 'y' label in the upper command band (-> opens a panel of transformation)

    or

    Use the "transformation" - Panel (if not visible, look in the menu 'windows'.)

  • Image control does not seem to honor the parameters width and height?

    Code Flex 3.6 below should load a swf file and its 100% width and height of 100 pixels.  This isn't.  Why not?

    He seems to choose an arbitrary width.  I can't understand what he uses.

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="absolute"> "

    < mx:SWFLoader

                        source=" http://path_to_a_dynamically_loaded_swf "

    scaleContent = "false".

    maintainAspectRatio = "false".

    Width = "100%" height = "100" >

    < / mx:SWFLoader >

    < / mx:Application >

    If you would like the image stretching then set scaleContent = true

  • How to get the width and height of Flex Mobile view?

    Hello

    The following instructions can get the width and height of the current Flex app:

    var request: UIComponent = FlexGlobals.topLevelApplication as UIComponent;

    trace (application. Width);

    trace (application. Height);

    But I don't know how to get the width and height of mobile display Flex current (i.e. the content size excludes bar action and the Navigation bar). Why the "this.width" always returns 0?

    Thank you!

    Looks like you're running in this bug: https://bugs.adobe.com/jira/browse/SDK-30070

  • manipulate the width and height on FORM

    Hello

    I would like to show a thumbnail of the image on a form page.
    I used the apex_util.get_blob_src - something but then it shows a large image.
    The problem is that I can not put the width and height. On a report, it works with a < img - tag > in the query, but I did not have this option in a form.

    Does anyone know how to fix this?

    This option is also possible (http://dgielis.blogspot.nl/2008/07/show-blob-of-other-table-in-apex-form.html), but my text field show only the < img > - tag. I don't know how to set up the field to only show the image... (in a report, you set "standard report column", but in forms?)

    Gr.
    garco

    garcol wrote:

    About P1210_AVATAR, I change "based on" (under settings) to "Image URL stored in the value of the page element.
    Under Source, I put this in the "source or expression value":

    return  'Avatar';
    

    This is not a URL, it's an HTML element. Inspect the source code, and I think you will find that the attribute src of the image element is completely garbled.

    P711_AFB is a part of the image (BLOB), P1210_DNR_ID is the primary key of the table where I get my image of.

    Create the P1210_AVATAR element with

    Display in the form: Image display
    Based on: Image URL stored in the value of the item Page
    The HTML Form element attributes: width = "50" height = "50" alt = "Avatar."
    Type of source: Body of the PL/SQL function
    Source of value or expression:

    return apex_util.get_blob_file_src('P711_AFB', :P1210_DNR_ID);
    
  • Set the width and height

    I prepare my InDesign ePub docs.

    Someone told me to if sure that the width and height of images are defined as the kindle will have problems if they are not.

    How do I get the images I have in my InDesign docs?

    Thank you.

    A picture is worth a thousand words:

  • Cannot change PopUp LOV width and height in version 4.2.5.00.08. I change the values of 450 400 in the Popup list template values (Section of the window), but my function genList0_f07_$ _row (), retains the same settings. Is this a bug?

    Hello

    I use APEX 4.2.5.00.08 to my app.

    I have a region of reports, where I display a column set. A column is the column attribute "display as" the value 'Popup LOV (LOV based query).

    I press the button to retrieve the LOV, I get a popup of 450 x 400 pixels.

    I go to the side of the model and navigate to "Popup list of values of model", where I can see in the section 'Window' attributes 'Width' and 'Height' value 450 and 400. I edit them and save them and there is nothing going on. I'm sure that the template belongs to my selected theme.

    I saw in the HTML source code that is the called function:

    <!--


    function genList0_f07_$ _row)
    {
    w = open ("wwv_flow_utilities.gen_popup_list" +)
    « ? p_filter ="+
    "& p_name = ' + escape ('f07') +.
    ' & p_element_index = ' + escape ('0') +.
    ' & p_elem_id = ' + escape ('f07_0000').
    ' & p_form_index = ' + escape ('0') +.
    ' & p_max_elements = ' + escape ("") +.
    ' & p_escape_html = ' + escape ("") +.
    ' & p_ok_to_query = ' + escape ('YES').
    ' & p_flow_id = ' + escape ('114') +.
    ' & p_page_id = ' + escape ('100201') +.
    ' & p_session_id = ' + escape ('16021544706004').
    ' & p_eval_value = ' + escape ("") +.
    ' & p_translation = ' + escape ('NO') +.
    ' & p_lov = ' +.
    ' & p_lov_checksum = ' +.
    ' & p_item_id = ' + escape('-683997768') +.
    ' & p_column_id = ' + escape ('25022622060292812'),
    "winLov,"
    "Scrollbars = 1, resizable = 1, width =400, height =450"); "
    If (w.opener is nothing)
    w.opener = auto;
    w.Focus ();
    }
    ->

    I see that the values has not changed. I also connected and disconnected. I am inclined to believe that it is a bug of the APEX.

    The only solution I think is to replace this function, which is NOT ideal.

    Thank you

    Digital

    The parameters are generated only, nothing you can do about it because it does not use the model for these properties of the couple. Other things work fine for example the names of button or title window etc. I guess that, Yes, it is a bug. It's still there in the apex 5 too, I checked. The default values of the template do not match, the value in the generated code is always 400/450. So I guess it's pretty much a wait on 5.1.

    Here's a fun hack to make it work well on your page (works in apex 5 too, because the code is always the same). Put this in the execute on loading of the page section:

    (function(){
      var _open = window.open;
      window.open = function(){
        if ( arguments[1] === "winLov" ) {
          arguments[2] = "Scrollbars=1,resizable=1,width=500,height=700";
        };
        return _open.apply(window, arguments);
      };
    })();
    

    Change the settings to your liking. This will replace the existing window.open call, which is what the popup lov use and replace it with our own code. It does not interfere with other things. As the name of the new window is always "winLov" for the popup lov, it is the argument that is checked.

    During the call to window.open to open a new window with the name "winLov", parameters are replaced with your own version of it. The window is called as usual, using the stored reference.

    Edit:

    Yes, do not use the trick of resizing. My hack can be a bit tedious, but it's much less invasive for the end user (see open, bam, resize. "Even gets funky on multiple monitors). Also, this thing in the popup lov template will affect each lov popup that you use in the application, which is much less interesting than my specific page code.

    Edit2:

    I did a little digging in the source code, and I don't know why it does not work. Popup lovs are actually equipped to deal with it. My guess is that the parameters are recovered only after that the lists were generated, causing the package variables global to use their default values instead of model parameters.

  • What is the width and height?

    I got a memory to provide a logo to be printed on a baseball cap, the printers asked me to provide the logo with a dimension not exceeding 19.35 square cm.

    What would be the width and height for the jury of art in Illustrator?

    Any help will be greatly appreciated.

    Thank you.

    Thank you all for your comments, that's why I'm so confused by the request because I calculated what 4,4 cm which is really small. I'll get them to confirm the actual size, because it's a very loose way of telling me the obligation and can be interpreted in many ways.

    Thanks again, much appreciated.

Maybe you are looking for

  • Date page does not appear first drop the bar down

    Just downloaded the new ios and found that the Notification Center page appears first when you use the new bar drop down. I have to keep pulling down then drag to the right to display date apps, weather, news, etc. How can I configure it so that I ca

  • What version of operating system do I have

    How can I check which version of the OS I have?

  • Button grey video chat out on android?

    The video chat button is grayed out on Android. This is the latest version of Skype. Im running on a Nexus 6 p located on Android 6.0.1 which is the latest version. The microphone works and I can hear everyone. But I do not see someone else was a vid

  • Where is line-in on my Equium A300D?

    I am trying to record some audio of one of the Radio stations on iPlayer with Audacity on my Toshiba Equium A300D laptop, however I don't see the option on the program online... I use the right drivers downloaded from the Toshiba site, so I'm pretty

  • NI Vision Run - Time Engine (incompatible with already installed products)

    Hi people - I created an installer for a simple application using LabVIEW and Vision 2010 SP1 64-bit.  The application works fine in Win7/64-bit OS development environment.  Failed to install on another computer with the same operating system, which